struct A { A() : n(1) {} int n; }; struct B { B() : n(2) {} int n; }; thread_local A a; B b; int main() { return a.n; }
adetermined to b.
a
b
My question is:
Is the C ++ standard warranty B::B()called before the call A::A()?
B::B()
A::A()
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1669843/More articles:F # check if a string contains only a number - pattern-matchingBrackets and non-character template arguments in C ++ 14 - c ++Failed to configure CommonsMultipartResolver in Spring4 - javaExtract takes forever on the meteor - windowsGetting TravisCI to commit and click on a modified file using tags (releases) - gitAuthentication with localhost to rest api results CORS error - corsCheck if a decorator exists on a property - angularAllowed? & Allowed in url - javascriptDownload mp3 file - listHow to make Instagram a button "Open in the application"? - javascriptAll Articles