Topic: [C++0X] tagging deprecated features


Author: no_spam_va@org.chemie.uni-frankfurt.de (Volker Apelt)
Date: Mon, 28 May 2001 22:58:22 GMT
Raw View
I'd like to have a defined way of deprecating old features of a
library. It should be an attribute to functions / classes / structs
/ enums ... . Every use of it in a non-deprecated function / class ...
should raise a mandatory warning about this function. like:

 deprecated  enum OldEnum  {a,b,c};
   deprecated  class VeryOld { };
 void  old_call(void) deprecated {};

        void new_call(void){
  VeryOld  obj; // compiler emmits a warning
  old_call();   // compiler emmits a warning
  }


--
Volker Apelt          Group of Prof. Dr. Ch. Griesinger
                      Johann Wolfgang Goethe Universitaet
                      Frankfurt am Main (Germany)
no_spam_va@org.chemie.uni-frankfurt.de  (use va@ instead of ...@ )

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]