Template Function boost_plugin_loader::createSharedInstance

Function Documentation

template<class ClassBase>
static std::shared_ptr<ClassBase> boost_plugin_loader::createSharedInstance(const boost::dll::shared_library &lib, const std::string &symbol_name)

Create a shared instance for the provided symbol_name loaded from the library_name searching system folders for library.

The symbol name is the alias provide when calling EXPORT_CLASS_SECTIONED

Parameters:
  • lib – The library to search for available symbols

  • symbol_name – The symbol to create a shared instance of

Returns:

A shared pointer of the object with the symbol name located in library_name_