On Friday, 2 November 2018 00:06:12 PDT Иван Комиссаров wrote:
> I vote for 3. The (small) argument is: with qint one cannot write an
> algorithm taking std:: class (std::vector<uchar>) and a Qt class but with
> size_type it can.
> 
> Something like
> template<typename T> T::size_type * getSize(const T &t) { return t.size(); }
> auto d1 = getSize(std::vector<uchar>()); // ok
> auto d2 = getSize(QString()); // ok
> 
> Seeing size_type in doc is OK - the users will be aware that it may vary
> depending on Qt ver.

size_type would be defined for the Qt types anyway, so your argument does not 
exclude #4.

What do you suggest we do for QImage?

-- 
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