Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5KB

  1. //
  2. // ip/impl/address.hpp
  3. // ~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef ASIO_IP_IMPL_ADDRESS_HPP
  11. #define ASIO_IP_IMPL_ADDRESS_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #if !defined(ASIO_NO_IOSTREAM)
  16. #include "asio/detail/throw_error.hpp"
  17. #include "asio/detail/push_options.hpp"
  18. namespace asio {
  19. namespace ip {
  20. #if !defined(ASIO_NO_DEPRECATED)
  21. inline address address::from_string(const char* str)
  22. {
  23. return asio::ip::make_address(str);
  24. }
  25. inline address address::from_string(
  26. const char* str, asio::error_code& ec)
  27. {
  28. return asio::ip::make_address(str, ec);
  29. }
  30. inline address address::from_string(const std::string& str)
  31. {
  32. return asio::ip::make_address(str);
  33. }
  34. inline address address::from_string(
  35. const std::string& str, asio::error_code& ec)
  36. {
  37. return asio::ip::make_address(str, ec);
  38. }
  39. #endif // !defined(ASIO_NO_DEPRECATED)
  40. template <typename Elem, typename Traits>
  41. std::basic_ostream<Elem, Traits>& operator<<(
  42. std::basic_ostream<Elem, Traits>& os, const address& addr)
  43. {
  44. return os << addr.to_string().c_str();
  45. }
  46. } // namespace ip
  47. } // namespace asio
  48. #include "asio/detail/pop_options.hpp"
  49. #endif // !defined(ASIO_NO_IOSTREAM)
  50. #endif // ASIO_IP_IMPL_ADDRESS_HPP