コード例 #1
0
ファイル: error.hpp プロジェクト: eaglewei/panda-svrkit
inline asio::error_code make_error_code(netdb_errors e)
{
  return asio::error_code(
      static_cast<int>(e), get_netdb_category());
}
コード例 #2
0
ファイル: error.hpp プロジェクト: c-zheng/autowiring
inline autoboost::system::error_code make_error_code(netdb_errors e)
{
  return autoboost::system::error_code(
      static_cast<int>(e), get_netdb_category());
}