]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/dll/import_class.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / dll / import_class.hpp
index 866fc9c0459b9751ee21444e64a9ce163827dd01..22c38770669c333bc7671856e42c81137bf9c054 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2015-2016 Klemens D. Morgenstern
+// Copyright 2015-2018 Klemens D. Morgenstern
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -250,16 +250,15 @@ inline std::unique_ptr<T, detail::deleter<T>> imported_class<T>::make_data(const
 
     if (!ctor.has_allocating() || !dtor.has_deleting())
     {
-        boost::system::error_code ec;
+        boost::dll::fs::error_code ec;
 
-        ec = boost::system::error_code(
-            boost::system::errc::bad_file_descriptor,
-            boost::system::generic_category()
+        ec = boost::dll::fs::make_error_code(
+            boost::dll::fs::errc::bad_file_descriptor
         );
 
         // report_error() calls dlsym, do not use it here!
         boost::throw_exception(
-            boost::system::system_error(
+            boost::dll::fs::system_error(
                 ec, "boost::dll::detail::make_data() failed: no allocating ctor or dtor was found"
             )
         );
@@ -280,16 +279,15 @@ inline std::unique_ptr<T, detail::deleter<T>> imported_class<T>::make_data(const
 
     if (!ctor.has_standard() || !dtor.has_standard())
     {
-        boost::system::error_code ec;
+        boost::dll::fs::error_code ec;
 
-        ec = boost::system::error_code(
-            boost::system::errc::bad_file_descriptor,
-            boost::system::generic_category()
+        ec = boost::dll::fs::make_error_code(
+            boost::dll::fs::errc::bad_file_descriptor
         );
 
         // report_error() calls dlsym, do not use it here!
         boost::throw_exception(
-            boost::system::system_error(
+            boost::dll::fs::system_error(
                 ec, "boost::dll::detail::make_data() failed: no regular ctor or dtor was found"
             )
         );
@@ -412,7 +410,7 @@ inline void boost::dll::experimental::imported_class<T>::move_assign(imported_cl
 *
 * \return class object.
 *
-* \throw boost::system::system_error if symbol does not exist or if the DLL/DSO was not loaded.
+* \throw \forcedlinkfs{system_error} if symbol does not exist or if the DLL/DSO was not loaded.
 *       Overload that accepts path also throws std::bad_alloc in case of insufficient memory.
 */
 template<typename T, typename ... Args> imported_class<T>