@@ -9,8 +9,8 @@ namespace test_mirror
99 {
1010 id.insert (std::make_pair (" int" , rtl::traits::uid<int >::value));
1111 id.insert (std::make_pair (" char" , rtl::traits::uid<char >::value));
12- id.insert (std::make_pair (" string" , rtl::traits::uid<std::string>::value));
13- id.insert (std::make_pair (" string_view" , rtl::traits::uid<std::string_view>::value));
12+ id.insert (std::make_pair (" std:: string" , rtl::traits::uid<std::string>::value));
13+ id.insert (std::make_pair (" std:: string_view" , rtl::traits::uid<std::string_view>::value));
1414 }
1515
1616 void Register::stdTypes (std::vector<rtl::Function>& fns)
@@ -33,8 +33,7 @@ namespace test_mirror
3333 fns.push_back (rtl::type ().record <char >(" char" )
3434 .build ());
3535
36- fns.push_back (rtl::type ().ns (" std" )
37- .record <std::string_view>(" string_view" )
36+ fns.push_back (rtl::type ().record <std::string_view>(" std::string_view" )
3837 .build ());
3938
4039 // Registers std::string class
@@ -46,11 +45,10 @@ namespace test_mirror
4645 * RTL will ignore this duplicate registration and retain the first one. Emits a warning on the console:
4746 * "[WARNING] Multiple registrations of the same type with different names detected."
4847 */ fns.push_back (rtl::type ().member <std::string>()
49- .methodConst (" empty" )
48+ .methodConst < void > (" empty" )
5049 .build (&std::string::empty));
5150
52- fns.push_back (rtl::type ().ns (" std" )
53- .record <std::string>(" string" )
51+ fns.push_back (rtl::type ().record <std::string>(" std::string" )
5452 .build ());
5553
5654 fns.push_back (rtl::type ().member <std::string>()
0 commit comments