1 | // $Id: deprecated.doxygen 2703 2012-03-12 06:43:10Z peter $ |
---|
2 | // |
---|
3 | // Copyright (C) 2011 Peter Johansson |
---|
4 | // |
---|
5 | // This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
6 | // |
---|
7 | // The yat library is free software; you can redistribute it and/or |
---|
8 | // modify it under the terms of the GNU General Public License as |
---|
9 | // published by the Free Software Foundation; either version 3 of the |
---|
10 | // License, or (at your option) any later version. |
---|
11 | // |
---|
12 | // The yat library is distributed in the hope that it will be useful, |
---|
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | // General Public License for more details. |
---|
16 | // |
---|
17 | // You should have received a copy of the GNU General Public License |
---|
18 | // along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
19 | |
---|
20 | |
---|
21 | /** |
---|
22 | \page yat_deprecate YAT_DEPRECATE |
---|
23 | |
---|
24 | Sometimes it may be necassary to remove a function or a class. In this |
---|
25 | case the function or class will first be declared \c deprecated and |
---|
26 | removed in a later version. If you try to use a <a |
---|
27 | href=deprecated.html>deprecated function or class</a> and you use |
---|
28 | GCC (or any other compiler that supports GCC like deprecations), the |
---|
29 | compiler will warn you that you are using deprecated |
---|
30 | functionality. You can disable these warnings by defining \c |
---|
31 | YAT_DEPRECATE before including the header file in question |
---|
32 | |
---|
33 | \verbatim |
---|
34 | #define YAT_DEPRECATE |
---|
35 | #include <yat/utility/foo.h> |
---|
36 | \endverbatim |
---|
37 | |
---|
38 | */ |
---|