]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/dll/example/tutorial8/refcounting_api.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / dll / example / tutorial8 / refcounting_api.hpp
index 5df76abf33772c67afb62c4fbfd75626478d0fe2..c9178110d92c6924dd767bf20e6e517dd7f944a3 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2014 Renato Tegon Forti, Antony Polukhin.
-// Copyright 2015 Antony Polukhin.
+// Copyright 2015-2019 Antony Polukhin.
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -7,13 +7,13 @@
 
 //[plugcpp_my_plugin_refcounting_api
 #include "../tutorial_common/my_plugin_api.hpp"
-#include <boost/filesystem/path.hpp>
+#include <boost/dll/config.hpp>
 
 class my_refcounting_api: public my_plugin_api {
 public:
     // Returns path to shared object that holds a plugin.
     // Must be instantiated in plugin.
-    virtual boost::filesystem::path location() const = 0;
+    virtual boost::dll::fs::path location() const = 0;
 };
 //]
 
@@ -33,7 +33,7 @@ struct library_holding_deleter {
 
 inline boost::shared_ptr<my_refcounting_api> bind(my_refcounting_api* plugin) {
     // getting location of the shared library that holds the plugin
-    boost::filesystem::path location = plugin->location();
+    boost::dll::fs::path location = plugin->location();
 
     // `make_shared` is an efficient way to create a shared pointer
     boost::shared_ptr<boost::dll::shared_library> lib
@@ -52,7 +52,7 @@ inline boost::shared_ptr<my_refcounting_api> bind(my_refcounting_api* plugin) {
 #include <boost/dll/import.hpp>
 #include <boost/function.hpp>
 inline boost::shared_ptr<my_refcounting_api> get_plugin(
-    boost::filesystem::path path, const char* func_name)
+    boost::dll::fs::path path, const char* func_name)
 {
     typedef my_refcounting_api*(func_t)();
     boost::function<func_t> creator = boost::dll::import_alias<func_t>(