24 May
2002
24 May
'02
2:10 p.m.
"Jerry Napoli"
| I'm using boost version 1.27.0 on an x86 linux platform and have just | upgraded my kernel to 2.4.18. After the upgrade, boost::shared_ptr | fails to compile because functions such as "atomic_inc_and_test", | "atomic_dec_and_test", etc.. which were previously defined in "atomic.h" | are no longer defined there. I can get around the problem by using an | older "atomic.h" or by using pthreads, but I was wondering why those | functions were removed from the header. Kernel headers are not safe to use in user programs. | Any ideas? In boost CVS now there is a atomic_count_gcc.hpp that uses the primitives that stdlibc++ v3 uses in basic_string. -- Lgb