From dabc1c8ae6ba7a6263f0fe25adfbe82992916d33 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 11 Mar 2018 19:18:46 +0000 Subject: [PATCH] Fix BOOST_NO_CXX11_ALLOCATOR check --- CHANGELOG.md | 6 ++++++ include/boost/beast/core/detail/allocator.hpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a845a47..ef062f1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 165: + +* Fix BOOST_NO_CXX11_ALLOCATOR check + +-------------------------------------------------------------------------------- + Version 164: * Fix masking on continuation frames diff --git a/include/boost/beast/core/detail/allocator.hpp b/include/boost/beast/core/detail/allocator.hpp index 39b2aa5f..e893f5c2 100644 --- a/include/boost/beast/core/detail/allocator.hpp +++ b/include/boost/beast/core/detail/allocator.hpp @@ -11,7 +11,7 @@ #define BOOST_BEAST_DETAIL_ALLOCATOR_HPP #include -#if BOOST_NO_CXX11_ALLOCATOR +#ifdef BOOST_NO_CXX11_ALLOCATOR #include #else #include @@ -25,7 +25,7 @@ namespace detail { // implementations which falsely claim C++11 // compatibility. -#if BOOST_NO_CXX11_ALLOCATOR +#ifdef BOOST_NO_CXX11_ALLOCATOR template using allocator_traits = boost::container::allocator_traits;