21 Mar
2007
21 Mar
'07
9:17 p.m.
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