20 Aug
2008
20 Aug
'08
4:02 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 20 August 2008 10:31 am, Jan Funke wrote:
Hi,
recently I wondered, whether there is any possibility to create a kind of "smart image", like the smart pointer of boost.
What I'd like to have is an image, that frees it's allocated memory automatically on vanishing of the last view accessing it.
Do you guys have any idea how to achieve this?
You could look at boost::shared_container_iterator for ideas, it does the analogous thing for 1D containers/iterators. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIrEAa5vihyNWuA4URApHNAKDEsFQxbPiPBJxZSgty3MTOA9lKzQCdF4vh eXIn1UukW82jV9jy27wbt3c= =Yq+O -----END PGP SIGNATURE-----