integrating shared_ptr and building with gcc 2.7.2
Hi everybody: I would like to make some of my classes reference counted, and I like what shared_ptr offers. The problem is (or is it really?) that I am building (have to) with gcc 2.7.2. The gcc.h header file which is part of the shared_ptr library does not like versions of gcc prior to 2.9.0. I would greatly appreciate it if somebody could point out a way to use the boost's shared_ptr technique and build with gcc prior to 2.9 Thanks, Nik
From: "Nik Kolev"
Hi everybody:
I would like to make some of my classes reference counted, and I like what shared_ptr offers. The problem is (or is it really?) that I am building (have to) with gcc 2.7.2. The gcc.h header file which is part of the shared_ptr library does not like versions of gcc prior to 2.9.0. I would greatly appreciate it if somebody could point out a way to use the boost's shared_ptr technique and build with gcc prior to 2.9
I think that you should try to generate a user configuration header as described in http://www.boost.org/libs/config/config.htm (gcc.hpp is part of Boost.Config.)
I think that you should try to generate a user configuration header as described in
http://www.boost.org/libs/config/config.htm
(gcc.hpp is part of Boost.Config.)
Thanks for the pointer. Actually, I "abused" it to work by commenting the error-if-gcc<2.9 out of gcc.hpp and taking out the namespace stuff (gcc 2.7 does not know about namespaces). Do you see any problems with doing so? In any case, I will look at the config.htm to try to find a more civilized solution. Thanks, Nik ----- /\ |\ /| ------ ----/\ | / \ | \ / | | | / \ | / --- \ | \/ | | | / \ ----- / \ | | |------| ----/ \----
participants (2)
-
Nik Kolev
-
Peter Dimov