Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/asio/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,10 @@ inline asio::error_code make_error_code(misc_errors e)

// boostify: non-boost code starts here
namespace detail {

#if !defined(ASIO_ERROR_NUMBER_TO_CONDITION_DECLARED)
#define ASIO_ERROR_NUMBER_TO_CONDITION_DECLARED
ASIO_DECL std::error_condition error_number_to_condition(int ev);

#endif
} // namespace detail
// boostify: non-boost code ends here
} // namespace error
Expand Down
4 changes: 4 additions & 0 deletions include/asio/impl/error_code.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ namespace asio {
namespace error {
namespace detail {

// Forward declaration required when error.hpp has not been included.
#if !defined(ASIO_ERROR_NUMBER_TO_CONDITION_DECLARED)
#define ASIO_ERROR_NUMBER_TO_CONDITION_DECLARED
ASIO_DECL std::error_condition error_number_to_condition(int ev);
#endif

} // namespace detail
} // namespace error
Expand Down