3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Test Programs</title>
5 <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../boost_staticassert.html" title="Chapter 26. Boost.StaticAssert">
9 <link rel="prev" href="how.html" title="How it works">
10 <link rel="next" href="../string_algo.html" title="Chapter 27. Boost String Algorithms Library">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
15 <td align="center"><a href="../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="how.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_staticassert.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../string_algo.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="boost_staticassert.test"></a>Test Programs</h2></div></div></div>
29 <a name="boost_staticassert.test.t0"></a><p class="title"><b>Table 26.1. Test programs provided with static_assert</b></p>
30 <div class="table-contents"><table class="table" summary="Test programs provided with static_assert">
57 <a href="../../../libs/static_assert/static_assert_test.cpp" target="_top">static_assert_test.cpp</a>
67 Illustrates usage, and should always compile, really just tests compiler
75 <a href="../../../libs/static_assert/static_assert_example_1.cpp" target="_top">static_assert_example_1.cpp</a>
85 Namespace scope test program, may compile depending upon the platform.
92 <a href="../../../libs/static_assert/static_assert_example_2.cpp" target="_top">static_assert_example_2.cpp</a>
102 Function scope test program.
109 <a href="../../../libs/static_assert/static_assert_example_3.cpp" target="_top">static_assert_example_3.cpp</a>
119 Class scope test program.
126 <a href="../../../libs/static_assert/static_assert_test_fail_1.cpp" target="_top">static_assert_test_fail_1.cpp</a>
136 Illustrates failure at namespace scope.
143 <a href="../../../libs/static_assert/static_assert_test_fail_2.cpp" target="_top">static_assert_test_fail_2.cpp</a>
153 Illustrates failure at non-template function scope.
160 <a href="../../../libs/static_assert/static_assert_test_fail_3.cpp" target="_top">static_assert_test_fail_3.cpp</a>
170 Illustrates failure at non-template class scope.
177 <a href="../../../libs/static_assert/static_assert_test_fail_4.cpp" target="_top">static_assert_test_fail_4.cpp</a>
187 Illustrates failure at non-template class scope.
194 <a href="../../../libs/static_assert/static_assert_test_fail_5.cpp" target="_top">static_assert_test_fail_5.cpp</a>
204 Illustrates failure at template class scope.
211 <a href="../../../libs/static_assert/static_assert_test_fail_6.cpp" target="_top">static_assert_test_fail_6.cpp</a>
221 Illustrates failure at template class member function scope.
228 <a href="../../../libs/static_assert/static_assert_test_fail_7.cpp" target="_top">static_assert_test_fail_7.cpp</a>
238 Illustrates failure of class scope example.
245 <a href="../../../libs/static_assert/static_assert_test_fail_8.cpp" target="_top">static_assert_test_fail_8.cpp</a>
255 Illustrates failure of function scope example.
262 <a href="../../../libs/static_assert/static_assert_test_fail_9.cpp" target="_top">static_assert_test_fail_9.cpp</a>
272 Illustrates failure of function scope example (part 2).
279 <br class="table-break">
281 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
282 <td align="left"></td>
283 <td align="right"><div class="copyright-footer">Copyright © 2000, 2005 Steve Cleary and John Maddock<p>
284 Distributed under the Boost Software License, Version 1.0. (See accompanying
285 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">
286 http://www.boost.org/LICENSE_1_0.txt </a>)
291 <div class="spirit-nav">
292 <a accesskey="p" href="how.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_staticassert.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../string_algo.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>