CPP11 allows list initialization for all objects, and because the constructor body is assigned, references and const variables must be initialized first, so you must use list initialization, so how is it initialized before CPP11?
CPP11 allows list initialization for all objects, and because the constructor body is assigned, references and const variables must be initialized first, so you must use list initialization, so how is it initialized before CPP11?
initialization of members can be done with direct initialization . The specific practice is:
Class::Class() : member(args)... {...}
this does not require cPP11.
Previous: After vue-cli creates a project to add eslint, eslint's rules are not based on .editorconfig?