Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-09-08 07:25:57

Brock Peabody wrote:
> These work:
> boost::scoped_ptr<volatile bool>(new volatile bool(true));
> boost::shared_ptr<bool>(new bool(true));
> But this fails:
> boost::shared_ptr<volatile bool>(new volatile bool(true));
> Am I doing something wrong?

Nothing wrong. It is a bit unusual to new a volatile bool and in fact MSVC
6, for instance, won't let you delete it afterwards but it's legal. I'll fix
shared_ptr in the CVS to allow it.

Boost list run by bdawes at, gregod at, cpdaniel at, john at