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