Topic: C++0x Wish list (deprecated)


Author: "Tom Puverle" <tp225@cam.ac.uk>
Date: Tue, 28 May 2002 17:47:49 GMT
Raw View
How about this:
A "deprecated" keyword that makes the compiler emit a warning when a
deprecated function/class is used.

E.g.

namespace SomeLib
{
    deprecated
    {
        void foo() {}
        int bar() {}
    }
    deprecated  class X {};
}

Tom


---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]