Boost logo

Boost :

Subject: Re: [boost] [1.50.0] Beta 1 release candidates available for testing
From: Daniel James (dnljms_at_[hidden])
Date: 2012-06-01 08:08:55


On 1 June 2012 12:21, Olaf van der Spek <ml_at_[hidden]> wrote:
>
> Are you sure this is a bug in VC11?
> If so, could you provide a minimal test case so that a bug can be reported?

Well, no, since I don't have access to VC11. But the error is:

error C2039: 'value_type' : is not a
member of 'std::allocator_traits<_Alloc>::rebind_alloc<_Other>'
_Alloc=std::allocator<std::pair<const int,int>>
_Other=std::pair<const int,int>

std::allocator_traits<_Alloc>::rebind_alloc<_Other> should be
std::allocator<std::pair<const int,int>>, and that should have a
member 'value_type'.

Maybe VC11 doesn't have template aliases, so it requires that
rebind_alloc is used differently, something like
'allocator_traits::rebind_alloc<value_type>::other', if that's the
case then IMO it'd better if they named it something different, since
it's used differently and it'd allow a smoother transition when they
are implemented.


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