2
0
mirror of https://github.com/boostorg/dll.git synced 2026-01-24 18:02:08 +00:00

Do not use boost::move in examples

This commit is contained in:
Antony Polukhin
2024-12-15 19:00:05 +03:00
parent f8aa2c49eb
commit 12d10c1917
2 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ std::size_t search_for_symbols(const std::vector<boost::dll::fs::path>& plugins)
// library has symbol, importing...
typedef boost::shared_ptr<my_plugin_api> (pluginapi_create_t)();
boost::function<pluginapi_create_t> creator
= dll::import_alias<pluginapi_create_t>(boost::move(lib), "create_plugin");
= dll::import_alias<pluginapi_create_t>(std::move(lib), "create_plugin");
std::cout << "Matching plugin name: " << creator()->name() << std::endl;
++ plugins_found;