Boost logo

Boost :

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


Andrey Semashev <andysem <at>> 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, gregod at, cpdaniel at, john at