// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // #ifndef BOOST_BEAST_DETAIL_ALLOCATOR_HPP #define BOOST_BEAST_DETAIL_ALLOCATOR_HPP #include #ifdef BOOST_NO_CXX11_ALLOCATOR #include #else #include #endif namespace boost { namespace beast { namespace detail { // This is a workaround for allocator_traits // implementations which falsely claim C++11 // compatibility. #ifdef BOOST_NO_CXX11_ALLOCATOR template using allocator_traits = boost::container::allocator_traits; #else template using allocator_traits = std::allocator_traits; #endif } // detail } // beast } // boost #endif