On quarta-feira, 19 de abril de 2017 12:26:48 PDT Nikita Krupenko wrote:
> BTW, is there any advantage of using lambda over the following construction?
> 
> std::unique_ptr<QObject, decltype(std::mem_fn(&QObject::deleteLater))>
> (ptr, std::mem_fn(&QObject::deleteLater));

Yes. I can remember how to write lambdas, but not those functions from the 
Standard Library.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to