Fix BOOST_NO_CXX11_ALLOCATOR check

This commit is contained in:
Daniel James
2018-03-11 14:22:31 -07:00
committed by Vinnie Falco
parent 6a34afb38a
commit dabc1c8ae6
2 changed files with 8 additions and 2 deletions
@@ -11,7 +11,7 @@
#define BOOST_BEAST_DETAIL_ALLOCATOR_HPP
#include <boost/config.hpp>
#if BOOST_NO_CXX11_ALLOCATOR
#ifdef BOOST_NO_CXX11_ALLOCATOR
#include <boost/container/allocator_traits.hpp>
#else
#include <memory>
@@ -25,7 +25,7 @@ namespace detail {
// implementations which falsely claim C++11
// compatibility.
#if BOOST_NO_CXX11_ALLOCATOR
#ifdef BOOST_NO_CXX11_ALLOCATOR
template<class Alloc>
using allocator_traits = boost::container::allocator_traits<Alloc>;