Subject: Re: [boost] [unordered] 1.48 beta1 fails to compile with MSVC 2010 SP 1, error C2027: use of undefined type 'boost::type'
From: Daniel James (dnljms_at_[hidden])
Date: 2011-10-29 11:12:43
On Saturday, 29 October 2011, Johan Lindvall wrote:
> After trying out beta 1, I am seeing some failures with unordered
> containers, see attached file.
> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
> The code compiles without problems under 1.47.0.
> Unfortunately, I cannot yet publish the source code that triggers this
Can you try something? Look in boost/unordered/detail/allocator_helpers.hpp
for the line:
#if !defined(BOOST_NO_SFINAE_EXPR) || BOOST_WORKAROUND(BOOST_MSVC, >= 1500)
and change it to:
Unordered uses a bit of a hack on Visual C++ to implement some of the C++11
functionality. That change disables it and uses the less capable fallback
implementation (which is actually a lot better now than it originally was,
so using a hack seems less appealing).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk