
On Fri, Jun 1, 2012 at 2:08 PM, Daniel James <dnljms@gmail.com> wrote:
On 1 June 2012 12:21, Olaf van der Spek <ml@vdspek.org> 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