On Tuesday, 19 September 2017 08:21:28 PDT Oswald Buddenhagen wrote: > On Tue, Sep 19, 2017 at 07:49:58AM -0700, Thiago Macieira wrote: > > Q_ALWAYS_INLINE, however, has no bearing in ABI. It's a purely > > optimisation > > feature and can be added or removed at will. > > would you bet on that? are you _sure_ it does not affect the emission of > out-of-line copies, on any compiler we support?
Yes. Out of line copies are still emitted by MSVC, even under always-inline. Q_ALWAYS_INLINE is not a get-out-of-jail for ABI guarantees. It's an optimisation hint. And maybe a fix for MSVC's inability to override the global operator new. See https://bugreports.qt.io/browse/QTBUG-63274. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development