On Thu, Nov 20, 2014 at 3:29 PM, Antony Polukhin
It means that BOOST_DLL_AUTO_ALIAS(my_namespace::cpp_function_name) must be able somehow to cut off the namespaces leaving only the variable/function name.
I was imagining that there would be a way to just replace "::"with _ (and not lose the namespace) to get: extern "C" void* my_namespace_cpp_function_alias_name = &my_namespace::cpp_function_name; I'm not experienced with macros so I'm not sure if it's doable. Maybe separating the differents name parts would work: BOOST_DLL_AUTO_ALIAS( namespaceA, namespaceB, function_name) // implemented with recursion for the namespaces? extern "C" void* namespaceA_namespaceB_function_name = &namespaceA:: namespaceB::cpp_function_name; But it seems less "elegant".