| 1 | |
|---|---|
| 2 | // Copyright 2019 Peter Dimov. |
| 3 | // Distributed under the Boost Software License, Version 1.0. |
| 4 | |
| 5 | #include <boost/config.hpp> |
| 6 | |
| 7 | #if defined(STD_SINGLE_INSTANCE_DYN_LINK) |
| 8 | # define EXPORT BOOST_SYMBOL_EXPORT |
| 9 | #else |
| 10 | # define EXPORT |
| 11 | #endif |
| 12 | |
| 13 | #include <boost/system/error_code.hpp> |
| 14 | #include <system_error> |
| 15 | |
| 16 | namespace lib1 |
| 17 | { |
| 18 | |
| 19 | EXPORT std::error_code get_system_code() |
| 20 | { |
| 21 | return boost::system::error_code( 0, boost::system::system_category() ); |
| 22 | } |
| 23 | |
| 24 | EXPORT std::error_code get_generic_code() |
| 25 | { |
| 26 | return boost::system::error_code( 0, boost::system::generic_category() ); |
| 27 | } |
| 28 | |
| 29 | } // namespace lib1 |
| 30 |
