Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::unordered_map using boost::interprocess::cached_node_allocator compilation failure
From: Daniel James (dnljms_at_[hidden])
Date: 2011-09-15 13:07:08


2011/9/15 Ion Gaztañaga <igaztanaga_at_[hidden]>:
> El 15/09/2011 9:53, Daniel James escribió:
>>
>> The problem is that the unordered containers do something similar to:
>>
>>     template<typename T, typename Allocator>
>>     struct node
>>     {
>>         typedef typename
>>             Allocator::template rebind<node<T>  >::other alloc;
>>         typedef typename alloc::pointer;
>>
>>         T value;
>>         pointer next;
>>     };
>
> Maybe using pointer_to_other (with new allocator_traits class in C++11 the
> work is derived to pointer_traits, which does not require instantiating the
> allocator, I guess)?

It requires instantiating the pointer class which might not work for
the same reason.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net