Hi,
I'm using c++11 and I wonder if the initialization of the constant variable "Andrew" is thread safe in this code:
Qt Code:
//some_file.h namespace ns { struct Person { const int id; const QString name; }; const Person Andrew { 2, QStringLiteral("Some string") }; }To copy to clipboard, switch view to plain text mode
Bookmarks