-// 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
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"
)
);
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"
)
);
*
* \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>