File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 17
17
#include < boost/network/support/is_async.hpp>
18
18
#include < boost/network/support/is_sync.hpp>
19
19
#include < boost/optional/optional.hpp>
20
- #include < boost/static_assert.hpp>
21
20
22
21
namespace boost {
23
22
namespace network {
@@ -60,8 +59,8 @@ class basic_client;
60
59
template <class Tag , unsigned version_major, unsigned version_minor>
61
60
struct basic_client_impl
62
61
: impl::client_base<Tag, version_major, version_minor>::type {
63
- BOOST_STATIC_ASSERT (
64
- (mpl::not_<mpl::and_<is_async<Tag>, is_sync<Tag> > >::value) );
62
+ static_assert (mpl::not_<mpl::and_<is_async<Tag>, is_sync<Tag> > >::value,
63
+ " Client can only be synchronous our asynchronous. " );
65
64
66
65
typedef typename impl::client_base<Tag, version_major, version_minor>::type
67
66
base_type;
Original file line number Diff line number Diff line change 15
15
#include < boost/network/support/is_tcp.hpp>
16
16
#include < boost/network/support/is_udp.hpp>
17
17
#include < boost/network/protocol/http/support/is_http.hpp>
18
- #include < boost/static_assert.hpp>
19
18
20
19
namespace boost {
21
20
namespace network {
@@ -31,8 +30,8 @@ struct resolver
31
30
typename mpl::if_<mpl::and_<is_udp<Tag>, is_http<Tag> >,
32
31
boost::asio::ip::udp::resolver,
33
32
unsupported_tag<Tag> >::type> {
34
- BOOST_STATIC_ASSERT (
35
- (mpl::not_<mpl::and_<is_udp<Tag>, is_tcp<Tag> > >::value) );
33
+ static_assert (mpl::not_<mpl::and_<is_udp<Tag>, is_tcp<Tag> > >::value,
34
+ " Transport protocol must be TCP or UDP " );
36
35
};
37
36
38
37
} // namespace http
Original file line number Diff line number Diff line change 8
8
9
9
#include < boost/mpl/not.hpp>
10
10
#include < boost/network/tags.hpp>
11
- #include < boost/static_assert.hpp>
12
11
#include < boost/utility/enable_if.hpp>
13
12
14
13
namespace boost {
@@ -25,4 +24,4 @@ struct is_tcp<Tag,
25
24
26
25
} // namespace boost
27
26
28
- #endif // BOOST_NETWORK_SUPPORT_IS_TCP_HPP_20100622
27
+ #endif // BOOST_NETWORK_SUPPORT_IS_TCP_HPP_20100622
Original file line number Diff line number Diff line change 9
9
#include < boost/mpl/not.hpp>
10
10
#include < boost/network/support/is_tcp.hpp>
11
11
#include < boost/network/tags.hpp>
12
- #include < boost/static_assert.hpp>
13
12
#include < boost/utility/enable_if.hpp>
14
13
15
14
namespace boost {
You can’t perform that action at this time.
0 commit comments