[Development] QtCS: Notes from Modern C++ session

Marc Mutz marc.mutz at kdab.com
Fri Jun 12 19:02:05 CEST 2015


On Friday 12 June 2015 16:49:38 Matthew Woehlke wrote:
> >> For now, don’t put std lib ABI into Qt ABI, except for nulltpr_t.
> >
> > 
> >
> > Too late: QException inherits std::exception (for a looong time already),
> > and  by virtue of various exported subclasses of QVector and QList, we
> > export ABI that contains std::vector and std::list (toStdList(),
> > toStdVector()). We probably also export ABI using std::string, because
> > I'm sure someone somewhere has inherited an exported class from
> > QString...
> 
> Besides being inline (template, dontcha know), isn't there an option to
> disable those? (Maybe not std::exception one, but at least the Qt <->
> STL container conversions?)

No, they are members. If the conversion was a free function, exporting QVector 
or QList wouldn't export the STL types. We can't disable them, either, as 
they're already exported. It would also be source-incompatible to do so.

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list