
5 Feb
2007
5 Feb
'07
10:07 p.m.
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