Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-03 10:45:21


Joaquín Mª López Muñoz wrote:
> Hi Jonathan,
>
> Jonathan Turkanis ha escrito:
>
>> Hi,
>>
>> I'm trying to use allocator_utilities with VC6 in the following
>> manner:
>>
>> template<typename Alloc>
>> struct bzip2_allocator_traits {
>> typedef typename
>> boost::detail::allocator::rebind_to<
>> Alloc,
>> char
>> >::type type;
>> };
>>
>> template< typename Alloc,
>> typename Base = // VC6 workaround: C2516
>> BOOST_DEDUCED_TYPENAME
>> bzip2_allocator_traits<Alloc>::type >
>> struct bzip2_allocator : private Base { ... };
>>
>> Unfortunately, I get the error C2039: 'rebind' : is not a member of
>> 'fake_allocator<0>'
>>
>
> Could you please post a complete snippet showing the problem?
> I've tried to reproduce it, but it works here (MSVC++ 6.0 sp 5).
> See below.

Okay, I should have checked this. It may be difficult to find a minimal case
that fails, but I'll work on it.

Thanks,
Jonathan


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