Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-02-05 17:07:01


AMDG

Andrey Semashev <andysem <at> mail.ru> writes:

>
> Well, the dispatcher is quite safe even if it's initialized more than
> once and even concurrently. Being a namespace-scope object is quite
> sufficient for it. But state names, which are std::strings, are quite
> fragile in this way. And unfortunately volatile flags won't help here.
>

You can use const char* or aligned_storage

In Christ,
Steven Watanabe


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