1 <!doctype HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 (C) Copyright 2002-4 Robert Ramey - http://www.rrsd.com .
5 Use, modification and distribution is subject to the Boost Software
6 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
10 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
11 <link rel=
"stylesheet" type=
"text/css" href=
"../../../boost.css">
12 <link rel=
"stylesheet" type=
"text/css" href=
"style.css">
13 <title>Serialization - BOOST_STATIC_WARNING
</title>
15 <body link=
"#0000ff" vlink=
"#800080">
16 <table border=
"0" cellpadding=
"7" cellspacing=
"0" width=
"100%" summary=
"header">
18 <td valign=
"top" width=
"300">
19 <h3><a href=
"../../../index.htm"><img height=
"86" width=
"277" alt=
"C++ Boost" src=
"../../../boost.png" border=
"0"></a></h3>
22 <h1 align=
"center">Serialization
</h1>
23 <h2 align=
"center"><code>BOOST_STATIC_WARNING
</code></h2>
29 The header
<code><boost/serialization/static_warning.hpp
></code> supplies a single macro
30 <code style=
"white-space: normal">BOOST_STATIC_WARNING(x)
</code>, which generates a compile time warning message if
31 the integral-constant-expression x is not true.
33 Note that if the condition is true, then the macro will generate neither
34 code nor data - and the macro can also be used at either namespace,
35 class or function scope. When used in a template, the expression x
36 will be evaluated at the time the template is instantiated; this is
37 particularly useful for validating template parameters.
39 It is intended that the functioning of
<code style=
"white-space: normal">BOOST_STATIC_WARNING(x)
</code>
40 be identical to that of
<code style=
"white-space: normal">BOOST_STATIC_ASSERT(x)
</code>
41 except that rather than resulting in a compilation error, it will result in
42 a compiler warning. In all other respects it should be the same. So
43 for more information on using
<code style=
"white-space: normal">BOOST_STATIC_WARNING(x)
</code>
44 consult the documentation for
<code style=
"white-space: normal">BOOST_STATIC_ASSERT(x)
</code>
45 <a href=
"../../../doc/html/boost_staticassert.html">here
</a>.
48 <p><i>© Copyright
<a href=
"http://www.rrsd.com">Robert Ramey
</a> 2002-
2004.
49 Distributed under the Boost Software License, Version
1.0. (See
50 accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)