[Development] Use QT_DEPRECATED_SINCE macro for specific enum values

Denis Shienkov denis.shienkov at gmail.com
Wed Aug 12 18:54:15 CEST 2015


> skips three making Four == 3.

yes, and what? :)

> This obviously needs to be:
> Four = 4

Ok, seems it was a bad example with One-Four.. Let's consider another
abstract example:

enum Foo {
    A,
    B,
 #if QT_DEPRECATED_SINCE(5, 2)
    C,
#endif
    D
};






2015-08-12 18:49 GMT+03:00 Pocheptsov Timur <
timur.pocheptsov at theqtcompany.com>:

>
> Though I did not notice that your 'One' is actually 0.
>
> ------------------------------
> *From:* development-bounces+timur.pocheptsov=
> theqtcompany.com at qt-project.org <development-bounces+timur.pocheptsov=
> theqtcompany.com at qt-project.org> on behalf of Denis Shienkov <
> denis.shienkov at gmail.com>
> *Sent:* Wednesday, August 12, 2015 5:45 PM
> *Cc:* development at qt-project.org
> *Subject:* Re: [Development] Use QT_DEPRECATED_SINCE macro for specific
> enum values
>
> > This obviously needs to be:
> >        Four = 4
>
> Sorry?
>
> 2015-08-12 17:37 GMT+03:00 Thiago Macieira <thiago.macieira at intel.com>:
>
>> On Wednesday 12 August 2015 15:36:22 Denis Shienkov wrote:
>> > Hi All.
>> >
>> > Is it possible to use QT_DEPRECATED_SINCE macro for the specific enum
>> > values? And, is any restrictions related to the different compilers?
>> >
>> > enum Numbers {
>> >     One,
>> >     Two,
>> > #if QT_DEPRECATED_SINCE(5, 2)
>> >     Three,
>> > #endif
>> >     Four
>>
>> This obviously needs to be:
>>         Four = 4
>>
>> > };
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150812/4cd4d239/attachment.html>


More information about the Development mailing list