[Development] Suggested addition to wiki.qt.io/Coding_Conventions

Thiago Macieira thiago.macieira at intel.com
Thu May 21 18:38:04 CEST 2015


On Thursday 21 May 2015 14:54:24 Marc Mutz wrote:
> > How?
> 
> Compile a QtCore debug version with an MSVC version that doesn't support
> rvalue refs, try to link against an application compiled with an MSVC
> version that does?
> 
> > > By Sergio's problem, an application built in C++11 debug mode should not
> > > be able to link against a QtCore built in C++98 mode, either (unresolved
> > > QString(QString &&)). Yet, that is what we wanted to support with the
> > > policy that all C++11 code needs to be inline-only.
> > 
> > The only compiler with that limitation is MSVC, for which the problem does
> > not  apply.
> 
> What about the above scenario?

Can't happen, at least not as of now.

We need to re-evaluate that with MSVC compiler version 20, when that comes 
(the one after Visual Studio 2015). Microsoft is getting serious about 
retaining compatibility, but it starts with 2015.

> > > And don't tell me this ain't a problem in practice - it just caused a CI
> > > failure on the above-mentioned, perfectly valid, patch :)
> > 
> > It's not what you described. The problem lies elsewhere.
> 
> It's not what I described _in this mail_. The CI failure is caused by a
> similar incompatibility d/t QT_STRICT_ITERATORS, cf. my mail before, yes.

Right.

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




More information about the Development mailing list