On Tuesday 21 July 2015 12:22:36 Matthew Woehlke wrote: > std::vector<QPen> list; > > // less efficient > auto&& pen = QPen{Qt::red, 1.5f}; > list.push_back(pen); > > // more efficient > list.emplace_back(Qt::blue, 2.0f);
This is a lot clearer. Thanks! -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development