On Sunday 18 July 2010 17:28:44 G T Smith wrote:
Bogdan Cristea wrote:
Just wondering: memory.h provided with gcc 4.5 does not have shared_ptr class ? Visual C++ 2010 seems to have this class, but not in gcc
Hmm.. a quick check indicates this is part of the (proposed) C++0x standard supposed to published in 2011.... Tricky including such things in code that is supposed to be portable at this moment :-)
http://gcc.gnu.org/onlinedocs/libstdc++/manual/shared_ptr.html
may give a clue on issues involved ....
Thanks for the tip. I have found that I need to include "tr1/memory" in order to get shared_ptr class in openSUSE, but portability is indeed a problem. See for reference this article: http://www.codesynthesis.com/~boris/blog/2010/05/24/smart-pointers-in-boost- tr1-cxx-x0/ -- Bogdan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org