1919#include < cstddef>
2020#include < cstring>
2121#include < stdexcept>
22- #include < boost/throw_exception.hpp>
2322#include " asio/detail/socket_ops.hpp"
2423#include " asio/detail/socket_types.hpp"
24+ #include " asio/detail/throw_exception.hpp"
2525#include " asio/ip/address.hpp"
2626
2727#include " asio/detail/push_options.hpp"
@@ -141,7 +141,7 @@ class multicast_enable_loopback
141141 if (s != sizeof (ipv6_value_))
142142 {
143143 std::length_error ex (" multicast_enable_loopback socket option resize" );
144- boost ::throw_exception (ex);
144+ asio::detail ::throw_exception (ex);
145145 }
146146 ipv4_value_ = ipv6_value_ ? 1 : 0 ;
147147 }
@@ -150,7 +150,7 @@ class multicast_enable_loopback
150150 if (s != sizeof (ipv4_value_))
151151 {
152152 std::length_error ex (" multicast_enable_loopback socket option resize" );
153- boost ::throw_exception (ex);
153+ asio::detail ::throw_exception (ex);
154154 }
155155 ipv6_value_ = ipv4_value_ ? 1 : 0 ;
156156 }
@@ -237,7 +237,7 @@ class unicast_hops
237237 if (s != sizeof (value_))
238238 {
239239 std::length_error ex (" unicast hops socket option resize" );
240- boost ::throw_exception (ex);
240+ asio::detail ::throw_exception (ex);
241241 }
242242#if defined(__hpux)
243243 if (value_ < 0 )
@@ -274,7 +274,7 @@ class multicast_hops
274274 if (v < 0 || v > 255 )
275275 {
276276 std::out_of_range ex (" multicast hops value out of range" );
277- boost ::throw_exception (ex);
277+ asio::detail ::throw_exception (ex);
278278 }
279279 ipv4_value_ = (ipv4_value_type)v;
280280 ipv6_value_ = v;
@@ -286,7 +286,7 @@ class multicast_hops
286286 if (v < 0 || v > 255 )
287287 {
288288 std::out_of_range ex (" multicast hops value out of range" );
289- boost ::throw_exception (ex);
289+ asio::detail ::throw_exception (ex);
290290 }
291291 ipv4_value_ = (ipv4_value_type)v;
292292 ipv6_value_ = v;
@@ -353,7 +353,7 @@ class multicast_hops
353353 if (s != sizeof (ipv6_value_))
354354 {
355355 std::length_error ex (" multicast hops socket option resize" );
356- boost ::throw_exception (ex);
356+ asio::detail ::throw_exception (ex);
357357 }
358358 if (ipv6_value_ < 0 )
359359 ipv4_value_ = 0 ;
@@ -367,7 +367,7 @@ class multicast_hops
367367 if (s != sizeof (ipv4_value_))
368368 {
369369 std::length_error ex (" multicast hops socket option resize" );
370- boost ::throw_exception (ex);
370+ asio::detail ::throw_exception (ex);
371371 }
372372 ipv6_value_ = ipv4_value_;
373373 }
0 commit comments