Boost logo

Boost :

Subject: Re: [boost] [1.50.0] Beta 1 release candidates available for testing
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-06-01 08:13:39


On Fri, Jun 1, 2012 at 2:08 PM, Daniel James <dnljms_at_[hidden]> wrote:
> 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:

Can't you download it?

> 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

It doesn't, neither did VC10.

> 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.

-- 
Olaf

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