...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::dll::experimental::get
// In header: <boost/dll/smart_library.hpp> template<typename Class, typename Signature> auto get(const smart_library & sm, const std::string & name);
Helper functions for overloads.
Gets either a variable, function or member-function, depending on the signature.
smart_library sm("lib.so"); get<int>(sm, "space::value"); //import a variable get<void(int)>(sm, "space::func"); //import a function get<some_class, void(int)>(sm, "space::class_::mem_fn"); //import a member function
Parameters: |
|