[Development] Qt LTS & C++11 plans

Thiago Macieira thiago.macieira at intel.com
Thu Jul 2 03:02:51 CEST 2015


On Wednesday 01 July 2015 21:03:21 Sune Vuorela wrote:
> I think we mostly avoid QPair in api's (because it is generally not very
> documenting in API). I don't see why std::tuple is any different.

I agree with Sune here. Please create your struct with the types in question 
and proper names.

And that's only for very simple structs. Anything more complex should get a d 
pointer[*] and become a value-type class. Examples: QNetworkAddressEntry, 
QNetworkCookie, etc.

[*] getting a d pointer does not mean getting rid of the private members. See 
the Qt 6 task for QDateTime, for example. It's also possible to have classes 
with no d pointer, but you need to be absolutely sure there's no chance of 
extension for the next 10 years.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list