2
0
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:
Antony Polukhin
2018-11-11 01:46:13 +03:00
parent e3146fc544
commit 017d2436ac
54 changed files with 461 additions and 398 deletions

View File

@@ -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;