11 #ifndef ASIO_IP_IMPL_ADDRESS_V6_HPP 12 #define ASIO_IP_IMPL_ADDRESS_V6_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_v6& 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_V6_HPP void throw_error(const asio::error_code &err)
std::basic_ostream< Elem, Traits > & operator<<(std::basic_ostream< Elem, Traits > &os, const address &addr)
Class to represent an error code value.
Implements IP version 6 style addresses.
ASIO_DECL std::string to_string() const
Get the address as a string.