Boost logo

Boost :

Subject: Re: [boost] [config] 4 new C++11 macros added
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2012-04-22 20:47:44


[John Maddock]
> BOOST_NO_CXX11_ALLOCATOR The standard library does not provide a C++11
> version of `std::allocator` in <memory>.

[Daniel James]
> Can this be used to check for std::allocator_traits?

[John Maddock]
> That's the intention yes. Currently though that macro is set for all
> compilers/std libraries, does anyone support that yet?

[Daniel James]
> I think GCC 4.7 does. http://gcc.gnu.org/gcc-4.7/changes.html says
> that is includes "implementations of pointer_traits, allocator_traits
> and scoped_allocator_adaptor".

VC11 also implements pointer_traits/allocator_traits/scoped_allocator_adaptor.

Stephan T. Lavavej
Visual C++ Libraries Developer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk