forked from boostorg/beast
Simplify multi_buffer and static_buffer sequences
This commit is contained in:
1 parent
f995fd41a3
commit
773048c551
5 files changed
+100
-96
No files matched your search
@@ -46,6 +46,12 @@ public:
|
||||
BOOST_STATIC_ASSERT(std::is_convertible<
|
||||
multi_buffer::mutable_data_type,
|
||||
multi_buffer::const_buffers_type>::value);
|
||||
#if ! defined( BOOST_LIBSTDCXX_VERSION ) || BOOST_LIBSTDCXX_VERSION >= 50000
|
||||
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
|
||||
multi_buffer::const_buffers_type>::value);
|
||||
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
|
||||
multi_buffer::mutable_data_type>::value);
|
||||
#endif
|
||||
|
||||
template<class Alloc1, class Alloc2>
|
||||
static
|
||||
|
||||
@@ -44,6 +44,14 @@ public:
|
||||
BOOST_STATIC_ASSERT(std::is_convertible<
|
||||
static_buffer_base::mutable_data_type,
|
||||
static_buffer_base::const_buffers_type>::value);
|
||||
#if ! defined( BOOST_LIBSTDCXX_VERSION ) || BOOST_LIBSTDCXX_VERSION >= 50000
|
||||
# ifndef BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
|
||||
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
|
||||
static_buffer_base::const_buffers_type>::value);
|
||||
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
|
||||
static_buffer_base::mutable_data_type>::value);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
template<class DynamicBuffer>
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user