Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-03-21 17:17:11


Matthew Bray skrev:
> Thorsten Ottosen wrote:
>> Matthew Bray skrev:
>>> <snip>
>> I think the documentation is incorrect.
>>
>> Could you check if this has been fixed in 1.34?
>>
>> -Thorsten
>>
>
> The code below almost allows the transfer functions to work as shown in
> the current documentation, unfortunately
> 'reversible_ptr_container::c_private()' is protected and stopping the
> lines 'from.c_private(). ...' from compiling.

Doh! Aren't templates just great sometimes.

> If c_private is made
> public then the transfer functions work correctly, possibly there's a
> further work-around?

Hm. I dunno. Compilers are starting to support templated friends, so
maybe that is the way to go for 1.35.

Thanks for reporting this.

-Thorsten


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