mirror of
https://github.com/boostorg/system.git
synced 2026-01-25 16:42:26 +01:00
23 lines
369 B
C++
23 lines
369 B
C++
|
|
|
||
|
|
// Copyright 2018 Peter Dimov.
|
||
|
|
// Distributed under the Boost Software License, Version 1.0.
|
||
|
|
|
||
|
|
#include <boost/system/error_code.hpp>
|
||
|
|
|
||
|
|
using namespace boost::system;
|
||
|
|
|
||
|
|
namespace lib2
|
||
|
|
{
|
||
|
|
|
||
|
|
error_code get_system_code()
|
||
|
|
{
|
||
|
|
return error_code( 0, system_category() );
|
||
|
|
}
|
||
|
|
|
||
|
|
error_code get_generic_code()
|
||
|
|
{
|
||
|
|
return error_code( 0, generic_category() );
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace lib2
|