Boost logo

Boost :

Subject: Re: [boost] [unordered] 1.48 beta1 fails to compile with MSVC 2010 SP 1, error C2027: use of undefined type 'boost::type'
From: Johan Lindvall (johan.lindvall_at_[hidden])
Date: 2011-10-31 13:31:19


>On Sat, Oct 29, 2011 at 6:09 PM, Johan Lindvall <johan.lindvall_at_[hidden]> wrote:
>>On Sat, Oct 29, 2011 at 5:12 PM, Daniel James <dnljms_at_[hidden]> wrote:
>> 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:
>>
>> #if !defined(BOOST_NO_SFINAE_EXPR)
>>
>> 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).
>
> Thankyou - yes, that solved the problem. The code now compiles as before.

It would be great if this fix could be rolled into 1.48.

Thanks,

-- 
/Johan.

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