Fix debug builds after small vector optimization

This commit is contained in:
Robbert van der Helm
2021-05-30 00:05:36 +02:00
parent b4c9f53bcf
commit b3d5a39001
+4 -4
View File
@@ -90,8 +90,8 @@ inline BOOST_ASIO_MUTABLE_BUFFER buffer(
data.size() ? &data[0] : 0, data.size() * sizeof(PodType) data.size() ? &data[0] : 0, data.size() * sizeof(PodType)
#if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING) #if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING)
, ,
detail::buffer_debug_check< detail::buffer_debug_check<typename boost::container::small_vector_base<
typename std::vector<PodType, Allocator>::iterator>(data.begin()) PodType, Allocator>::iterator>(data.begin())
#endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING #endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
); );
} }
@@ -110,8 +110,8 @@ inline BOOST_ASIO_MUTABLE_BUFFER buffer(
: max_size_in_bytes : max_size_in_bytes
#if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING) #if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING)
, ,
detail::buffer_debug_check< detail::buffer_debug_check<typename boost::container::small_vector_base<
typename std::vector<PodType, Allocator>::iterator>(data.begin()) PodType, Allocator>::iterator>(data.begin())
#endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING #endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
); );
} }