On Friday, July 31, 2015 at 7:19:32 AM UTC-4, Jeffrey Walton wrote: > > Currently, DEFAUT_CHANNEL and AAD_CHANNEL are strings allocated in > cryptlib.cpp and subject to all the translation unit rules regarding static > initialization. Its been pain point for me in the past, and I think Bizyaev > is experiencing it now. >
This is the issue I am talking about. From http://stackoverflow.com/a/12186903/608639: ... The second difference can be useful to avoid the *static intialisation order fiasco*, where global variables can be accessed before they're initialised. One of the things going on behind the scenes is, the static local is also thread safe. The compilers/library writers are required to make it so. Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
