Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2005-01-18 05:56:40


Roland Schwarz wrote:

> I suggest instead to have something along the lines:
>
> namespace { // to keep things private as possible
> boost::thread_specific_ptr<mytype> foo_p;
> };

I think using an anonymous namespace makes no sense here as the ipp file
is included in more than one translation unit (you would produce more
than one instances of foo_p).

Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk