|
Boost Users : |
From: Sohail Somani (sohail_at_[hidden])
Date: 2008-05-22 13:28:34
Robert Ramey wrote:
> This can't work.
>
> load a pointer creates a new pointer with a copy of the original object.
>
> adding the following to your test should make this clear
>
> ...
> std::cout << "ref: " << *m.ref << std::endl;
> ...
> std::cout << "ref: " << *m2.ref << std::endl;
>
Ok, the author will know more than I! For the OP, you can have a map of
pointers which will work.
-- Sohail Somani http://uint32t.blogspot.com
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