C++11: initializer lists

image0

Prior C++11, curly braces could be used to initialize POD-compliant structures or classes only. In C++11, the use of curly braces has been extended. This improvement has been done partly for the new std::initializer_list object, that is useful when constructing sequence objects, for example a std::vector ...

more ...