@@ -9,37 +9,36 @@ using namespace test_utils;
99
1010namespace test_mirror
1111{
12- void registerTypeStringFuncs (std::vector<rtl::Function>& fns)
13- {
12+ void registerTypeStringFuncs (std::vector<rtl::Function>& fns)
13+ {
1414 // Function taking no arguments. '<void>' must be specified if other overload exists else not needed. compiler error otherwise.
1515 fns.push_back (rtl::type ().function <void >(str_reverseString)
16- .build (reverseString));
16+ .build (reverseString));
1717
1818 // Overloaded function, takes 'string' arguments. '<string>' must be specified as template parameter.
1919 fns.push_back (rtl::type ().function <std::string>(str_reverseString)
20- .build (reverseString));
20+ .build (reverseString));
2121
2222 // Overloaded function, takes 'const char*' arguments.
2323 fns.push_back (rtl::type ().function <const char *>(str_reverseString)
24- .build (reverseString));
25-
24+ .build (reverseString));
2625 // numereous other overloads.
2726 #if defined(__GNUC__) && !defined(__clang__)
28- /*
29- GCC here fails to automatically resolve the correct overloaded functor
30- when both a lvalue reference and an rvalue overload exist.
31- To disambiguate, explicitly cast the function pointer, e.g.:
27+ /*
28+ GCC here fails to automatically resolve the correct overloaded functor
29+ when both a lvalue reference and an rvalue overload exist.
30+ To disambiguate, explicitly cast the function pointer, e.g.:
3231
33- static_cast<std::string(*)(std::string&&)>(reverseString)
34- */
32+ static_cast<std::string(*)(std::string&&)>(reverseString)
33+ */
3534 fns.push_back (rtl::type ().function <std::string&>(str_reverseString)
36- .build (static_cast <std::string (StrMute:: *)(std::string&)>(reverseString)));
35+ .build (static_cast <std::string (*)(std::string&)>(reverseString)));
3736
3837 fns.push_back (rtl::type ().function <const std::string&>(str_reverseString)
39- .build (static_cast <std::string (StrMute:: *)(const std::string&)>(reverseString)));
38+ .build (static_cast <std::string (*)(const std::string&)>(reverseString)));
4039
4140 fns.push_back (rtl::type ().function <std::string&&>(str_reverseString)
42- .build (static_cast <std::string (StrMute:: *)(std::string&&)>(reverseString)));
41+ .build (static_cast <std::string (*)(std::string&&)>(reverseString)));
4342#else
4443 fns.push_back (rtl::type ().function <std::string&>(str_reverseString)
4544 .build (reverseString));
@@ -82,5 +81,5 @@ namespace test_mirror
8281
8382 fns.push_back (rtl::type ().function <const std::string_view&>(str_revStrOverloadValRefAndCRef)
8483 .build (revStrOverloadRefAndCRef));
85- }
84+ }
8685}
0 commit comments