
"Stjepan Rajko" <stjepan.rajko@gmail.com> wrote in message news:64b40dc30906161632n274161e9v4a8dc648c2ef8c3b@mail.gmail.com...
On Tue, Jun 16, 2009 at 2:32 PM, Chard<boost@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?