[Development] QList

Thiago Macieira thiago.macieira at intel.com
Thu Mar 23 19:25:01 CET 2017


On quarta-feira, 22 de março de 2017 02:36:19 PDT Edward Welbourne wrote:
> Is there scope for a common (perhaps private) base, to be used by (at
> least) QString and QStringView, something along the lines of a Java
> interface ?

That was an alternative I didn't post because I hadn't yet throught it 
through. Instead of QString privately inheriting from QStringView, both 
QString and QStringView would inherit from a QStringBase or QStringOps or 
whtever we call it, containing most of the common read-only code.

If we inherit publicly, then we also save from having to have those annoying 
"using QStringView::indexOf;". But, like I said, not completely throught 
through yet.

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




More information about the Development mailing list