11 #ifndef ASIO_IP_IMPL_ADDRESS_HPP 12 #define ASIO_IP_IMPL_ADDRESS_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 18 #if !defined(ASIO_NO_IOSTREAM) 27 template <
typename Elem,
typename Traits>
29 std::basic_ostream<Elem, Traits>& os,
const address& addr)
35 if (os.exceptions() & std::basic_ostream<Elem, Traits>::failbit)
38 os.setstate(std::basic_ostream<Elem, Traits>::failbit);
41 for (std::string::iterator i = s.begin(); i != s.end(); ++i)
51 #endif // !defined(ASIO_NO_IOSTREAM) 53 #endif // ASIO_IP_IMPL_ADDRESS_HPP void throw_error(const asio::error_code &err)
ASIO_DECL std::string to_string() const
Get the address as a string in dotted decimal format.
std::basic_ostream< Elem, Traits > & operator<<(std::basic_ostream< Elem, Traits > &os, const address &addr)
Implements version-independent IP addresses.
Class to represent an error code value.