diff --git a/CHANGELOG.md b/CHANGELOG.md index 50482330..8ac600fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Version 145: * Refactor HTTP async read composed operations * null_buffers is deprecated * Version 124 works with Boost 1.65.1 and earlier +* basic_fields does not support fancy pointers -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/fields.hpp b/include/boost/beast/http/fields.hpp index 4aa9ff71..469320ca 100644 --- a/include/boost/beast/http/fields.hpp +++ b/include/boost/beast/http/fields.hpp @@ -56,6 +56,11 @@ class basic_fields : private beast::detail::empty_base_optimization #endif { + // Fancy pointers are not supported + static_assert(std::is_pointer::pointer>::value, + "Allocator must use regular pointers"); + friend class fields_test; // for `header` static std::size_t constexpr max_static_buffer = 4096;