Boost logo

Boost Users :

From: yg-boost-users_at_[hidden]
Date: 2002-05-24 09:10:24


"Jerry Napoli" <jnapoli_at_[hidden]> writes:

| Hi,
>
| 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

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