123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef BOOST_BEAST_DETAIL_ALLOCATOR_HPP
- #define BOOST_BEAST_DETAIL_ALLOCATOR_HPP
- #include <boost/config.hpp>
- #ifdef BOOST_NO_CXX11_ALLOCATOR
- #include <boost/container/allocator_traits.hpp>
- #else
- #include <memory>
- #endif
- namespace boost {
- namespace beast {
- namespace detail {
- #ifdef BOOST_NO_CXX11_ALLOCATOR
- template<class Alloc>
- using allocator_traits = boost::container::allocator_traits<Alloc>;
- #else
- template<class Alloc>
- using allocator_traits = std::allocator_traits<Alloc>;
- #endif
- }
- }
- }
- #endif
|