Boost logo

Boost :

Subject: Re: [boost] Request: boost deprecated tag
From: Chard (boost_at_[hidden])
Date: 2009-06-18 16:16:42


"Stjepan Rajko" <stjepan.rajko_at_[hidden]> wrote in message
news:64b40dc30906161632n274161e9v4a8dc648c2ef8c3b_at_mail.gmail.com...
> On Tue, Jun 16, 2009 at 2:32 PM, Chard<boost_at_hazlewoods.eu> wrote:
>> Given that there is a current move to rationalize the bind placeholders,
>> and
>> potentially introduce deprecated definitions, would it worth introducing
>> a
>> boost deprecated marker that makes use of compiler support to notify the
>> user that they are using such definitions?
>>
>
> I've used something like this and found it very useful. The usage was
> something like:
>
> BOOST_DEPRECATED("** use bar instead **") void foo(...);
>
> The string was useful for compilers that can print it along with the
> deprecation warning.

That seems sensible; even for compilers with no message the information is
nicely contained.

Personally, this feels like a no-brainer: it can sit in a stand-alone
header, is only included by those headers that want to declare deprecated
functionality, has no drastic effect on anything that currently exists, adds
useful information and could be switched off anyway.

Following a quick invesigation, it looks like CodeWarrior supports
__declspec(deprecated).

Does anybody else have an opinion, or is it just Stjepan, me and the
tumbleweeds here?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk