Sent: Wednesday, August 12, 2015 11:06 PM
To: development@qt-project.org
Subject: Re: [Development] Use QT_DEPRECATED_SINCE macro for specific enum
values
On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote:
> So, my question is: how to deprecate the specific enum value with a
> right
Ok, many thanks, Thiago. It was that I want to know.
13.08.2015 0:06, Thiago Macieira пишет:
> On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote:
>> So, my question is: how to deprecate the specific enum value with a
>> right way for all compilers/platforms?
> Don't do it. There's no porta
On Wednesday 12 August 2015 22:12:43 Denis Shienkov wrote:
> So, my question is: how to deprecate the specific enum value with a
> right way for all compilers/platforms?
Don't do it. There's no portable way yet. Maybe in a year or two we can
introduce a macro for it.
--
Thiago Macieira - thiago
> If you remove C due to the macro, then D is now equal to 3 from
incrementing its value based off of B's value instead of C.
Yes, I know it... But I talk not about it.. I talk about using
QT_DEPRECATED_SINCE in common case, according to enum values.
What if I need to deprecate the specific v
> Op 12 aug. 2015 om 19:52 heeft Keith Gardner het
> volgende geschreven:
>
>
>
>> On Wed, Aug 12, 2015 at 11:54 AM Denis Shienkov
>> wrote:
>> > skips three making Four == 3.
>>
>> yes, and what? :)
>>
>>
>> > This obviously needs to be:
>> > Four = 4
>>
>> Ok, seems it was a bad exam
On Wed, Aug 12, 2015 at 11:54 AM Denis Shienkov
wrote:
> > 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_
@qt-project.org> on behalf of Denis Shienkov <
> denis.shien...@gmail.com>
> *Sent:* Wednesday, August 12, 2015 5:45 PM
> *Cc:* development@qt-project.org
> *Subject:* Re: [Development] Use QT_DEPRECATED_SINCE macro for specific
> enum values
>
> > This obviously needs to
evelopment] 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
mailto:thiago.macie...@intel.com>>:
On Wednesday 12 August 2015 15:36:22 Denis Shienkov wrote:
> Hi All.
opment@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
mailto:thiago.macie...@intel.com>>:
On Wednesday 12 August 2015 15:36:22 Denis Shienkov wr
> This obviously needs to be:
>Four = 4
Sorry?
2015-08-12 17:37 GMT+03:00 Thiago Macieira :
> 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
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)
> Thre
See http://code.woboq.org/qt5/qtbase/src/network/ssl/qssl.h.html#75
Note that qdoc doesn't like it much.
Rich.
On 12 August 2015 at 13:36, 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
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
};
BR,
Denis
__
13 matches
Mail list logo