-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeprecated.cpp
57 lines (49 loc) · 1.23 KB
/
Deprecated.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* \file Deprecated.cpp
* \brief
*
* Indicates that the use of the name or entity declared with this attribute is allowed,
* but discouraged for some reason. Compilers typically issue warnings on such uses.
* The string-literal, if specified, is usually included in the warnings.
*/
#include <StdStream/StdStream.h>
#include <StdTest/StdTest.h>
#include <Stl.h>
//-------------------------------------------------------------------------------------------------
[[deprecated]]
void
foo1()
{
STD_TRACE_FUNC
}
//-------------------------------------------------------------------------------------------------
[[deprecated("Use foo22() instead")]]
void
foo2()
{
STD_TRACE_FUNC
}
//-------------------------------------------------------------------------------------------------
class A
{
public:
static void foo3();
};
[[deprecated("Use foo33() instead")]]
void
A::foo3()
{
STD_TRACE_FUNC
}
//-------------------------------------------------------------------------------------------------
int main(int, char **)
{
// foo1();
// foo2();
// A::foo3();
return EXIT_SUCCESS;
}
//-------------------------------------------------------------------------------------------------
#if OUTPUT
// warnings
#endif