[Development] QtCS: Notes from Modern C++ session
Matthew Woehlke
mw_triad at users.sourceforge.net
Tue Jun 16 16:52:16 CEST 2015
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?
>> 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
More information about the Development
mailing list