File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
include/boost_plugin_loader Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,15 @@ static std::shared_ptr<ClassBase> createSharedInstance(const boost::dll::shared_
51
51
throw PluginLoaderException (" Failed to find symbol '" + symbol_name +
52
52
" ' in library: " + boost::dll::shared_library::decorate (lib.location ()).string ());
53
53
54
- #if BOOST_VERSION >= 107600
54
+ #if BOOST_VERSION >= 108800
55
55
return boost::dll::import_symbol<ClassBase>(lib, symbol_name);
56
56
#else
57
- boost::shared_ptr<ClassBase> plugin = boost::dll::import <ClassBase>(lib, symbol_name);
58
- return std::shared_ptr<ClassBase>(plugin.get (), [plugin](ClassBase*) mutable { plugin.reset (); });
57
+ #if BOOST_VERSION >= 107600
58
+ boost::shared_ptr<ClassBase> plugin = boost::dll::import_symbol<ClassBase>(lib, symbol_name);
59
+ #else
60
+ boost::shared_ptr<ClassBase> plugin = boost::dll::import <ClassBase>(lib, symbol_name);
61
+ #endif
62
+ return std::shared_ptr<ClassBase>(plugin.get (), [plugin](ClassBase*) mutable { plugin.reset (); });
59
63
#endif
60
64
}
61
65
You can’t perform that action at this time.
0 commit comments