Skip to content

Commit b34ab29

Browse files
authored
Merge pull request #661 from andreacassioli/remove-BOOST_NO_CXX11_ALLOCATOR-container-gen
remove BOOST_NO_CXX11_ALLOCATOR
2 parents d2d10c3 + 607388a commit b34ab29

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎example/container_gen.cpp‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ namespace boost
2020
template < class Alloc, class ValueType >
2121
struct container_gen< list_with_allocatorS< Alloc >, ValueType >
2222
{
23-
#ifdef BOOST_NO_CXX11_ALLOCATOR
24-
using Allocator = typename Alloc::template rebind< ValueType >::other;
25-
#else
23+
2624
using Allocator = typename std::allocator_traits<
2725
Alloc >::template rebind_alloc< ValueType >;
28-
#endif
2926
using type = std::list< ValueType, Allocator >;
3027
};
28+
3129
template < class Alloc >
3230
struct parallel_edge_traits< list_with_allocatorS< Alloc > >
3331
{

0 commit comments

Comments
 (0)