Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2005-01-18 06:00:39


Stefan Slapeta wrote:

[simplified code]
>
> typedef boost::thread_specific_ptr<ptr_t> tld_t;
>
> tld_t tld_helper = static_<tld_t, X>::get();
>
> if (!tld_helper.get())
> tld_helper.reset(new ptr_t);
> ptr_t &helper = *tld_helper;
>
>

;)


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