mirror of
https://github.com/boostorg/system.git
synced 2025-07-31 13:07:13 +02:00
Move interoperability support to error_category_impl.hpp
This commit is contained in:
@ -92,4 +92,17 @@ inline char const * error_category::message( int ev, char * buffer, std::size_t
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
// interoperability with std::error_code, std::error_condition
|
||||||
|
|
||||||
|
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
||||||
|
|
||||||
|
#include <boost/system/detail/std_interoperability.hpp>
|
||||||
|
|
||||||
|
inline boost::system::error_category::operator std::error_category const & () const
|
||||||
|
{
|
||||||
|
return boost::system::detail::to_std_category( *this );
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
||||||
|
|
||||||
#endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CATEGORY_IMPL_HPP_INCLUDED
|
#endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CATEGORY_IMPL_HPP_INCLUDED
|
||||||
|
@ -140,17 +140,4 @@ inline char const * boost::system::detail::system_error_category::message( int e
|
|||||||
|
|
||||||
#endif // #if defined(BOOST_WINDOWS_API)
|
#endif // #if defined(BOOST_WINDOWS_API)
|
||||||
|
|
||||||
// interoperability with std::error_code, std::error_condition
|
|
||||||
|
|
||||||
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
|
||||||
|
|
||||||
#include <boost/system/detail/std_interoperability.hpp>
|
|
||||||
|
|
||||||
inline boost::system::error_category::operator std::error_category const & () const
|
|
||||||
{
|
|
||||||
return boost::system::detail::to_std_category( *this );
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
|
|
||||||
|
|
||||||
#endif // BOOST_SYSTEM_ERROR_CODE_HPP_INCLUDED
|
#endif // BOOST_SYSTEM_ERROR_CODE_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user