1
2// Copyright 2018 Peter Dimov.
3// Distributed under the Boost Software License, Version 1.0.
4
5#include <boost/config.hpp>
6
7#if defined(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>
14using namespace boost::system;
15
16namespace lib1
17{
18
19EXPORT error_code get_system_code()
20{
21 return error_code( 0, system_category() );
22}
23
24EXPORT error_code get_generic_code()
25{
26 return error_code( 0, generic_category() );
27}
28
29} // namespace lib1
30

source code of boost/libs/system/test/single_instance_1.cpp