[Development] How to make a fancy QMap c++17 initializer_list

Thiago Macieira thiago.macieira at intel.com
Mon Jul 24 16:53:47 CEST 2017


On Monday, 24 July 2017 00:00:36 PDT Marc Mutz wrote:
> Hi,
> 
> We haven't added deduction guides to any Qt class, yet. If you want to
> use bleeding-edge C++, use C++, iow: std::map.

std::map currently (GCC 7.1.1) works less well than QMap, since you can't even 
trick it. The std::pair that std::map uses requires a const Key, which you 
can't get with a primitive prvalue.

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




More information about the Development mailing list