mirror of
https://github.com/boostorg/dll.git
synced 2026-01-28 07:02:20 +00:00
Use std::filesystem and std::error_code if user asked for that (refs #40)
This commit is contained in:
@@ -17,7 +17,7 @@ namespace dll = boost::dll;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
/*<-*/ b2_workarounds::argv_to_path_guard guard(argc, argv); /*->*/
|
||||
boost::filesystem::path shared_library_path(argv[1]); // argv[1] contains path to directory with our plugin library
|
||||
boost::dll::fs::path shared_library_path(argv[1]); // argv[1] contains path to directory with our plugin library
|
||||
shared_library_path /= "my_plugin_aggregator";
|
||||
typedef boost::shared_ptr<my_plugin_api> (pluginapi_create_t)();
|
||||
boost::function<pluginapi_create_t> creator;
|
||||
|
||||
Reference in New Issue
Block a user