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

Ziller Eike Eike.Ziller at theqtcompany.com
Tue Jun 16 22:49:46 CEST 2015


> On Jun 16, 2015, at 16:52, Matthew Woehlke <mw_triad at users.sourceforge.net> wrote:
> 
> On 2015-06-12 17:45, Thiago Macieira wrote:
>> On Friday 12 June 2015 10:49:38 Matthew Woehlke wrote:
>>>> On Friday 12 June 2015 08:08:51 André Somers wrote:
>>>>> Not available for use are:
>>>>> * = default,
>>>>> * = deleted,
>>> 
>>> Where are these not supported? I have code that (AFAIK) has been using
>>> these already, and IIRC our compiler requirements are lower.
>> 
>> GCC requires 4.7 for this. I think we were discussing whether our minimum is 
>> 4.6 or 4.7.
> 
> Again... really? I have code using '= default' that sometimes¹ is built
> on GCC *4.4*. '= delete' seems to be accepted also. (Now... it may be
> that '= default' is actually broken, i.e. generates bad code, but based
> on a very simple test I just whipped up, '= delete' at least seems to
> work. This is with gcc44-c++-4.4.7-1.el5.)
> 
> (¹ Well... it's 'intended to work on GCC 4.4' and does occasionally get
> tested, but maybe not often or - as far as verifying that it actually
> runs correctly - well.)
> 
> Did it get broken by 4.6 or something like that?

Actually this is not supported in VS2012
https://msdn.microsoft.com/en-us/library/hh567368.aspx

And Thiago’s link actually lists it under VS2013 as well :)

http://code.woboq.org/qt5/qtbase/src/corelib/global/qcompilerdetection.h.html#851

>>> 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?)
>> 
>> QT_NO_STL isn't supported since 5.0.
> 
> Ah... don't use it, hadn't paid attention or noticed :-).
> 
> -- 
> Matthew
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Eike Ziller, Senior Software Engineer | The Qt Company
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Development mailing list