2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_DETAIL_ALLOCATOR_HPP
11 #define BOOST_BEAST_DETAIL_ALLOCATOR_HPP
13 #include <boost/config.hpp>
14 #if BOOST_NO_CXX11_ALLOCATOR
15 #include <boost/container/allocator_traits.hpp>
24 // This is a workaround for allocator_traits
25 // implementations which falsely claim C++11
28 #if BOOST_NO_CXX11_ALLOCATOR
30 using allocator_traits = boost::container::allocator_traits<Alloc>;
34 using allocator_traits = std::allocator_traits<Alloc>;