297 lines
8.7 KiB
HTML
297 lines
8.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>Test Programs</title>
|
||
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
||
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
|
||
<link rel="up" href="../boost_staticassert.html" title="Chapter 38. Boost.StaticAssert">
|
||
<link rel="prev" href="how.html" title="How it works">
|
||
<link rel="next" href="../stl_interfaces.html" title="Chapter 39. Boost.STLInterfaces">
|
||
</head>
|
||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||
<table cellpadding="2" width="100%"><tr>
|
||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
|
||
<td align="center"><a href="../../../index.html">Home</a></td>
|
||
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
|
||
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
|
||
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
|
||
<td align="center"><a href="../../../more/index.htm">More</a></td>
|
||
</tr></table>
|
||
<hr>
|
||
<div class="spirit-nav">
|
||
<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="../stl_interfaces.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
|
||
</div>
|
||
<div class="section">
|
||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||
<a name="boost_staticassert.test"></a>Test Programs</h2></div></div></div>
|
||
<div class="table">
|
||
<a name="boost_staticassert.test.t0"></a><p class="title"><b>Table 38.1. Test programs provided with static_assert</b></p>
|
||
<div class="table-contents"><table class="table" summary="Test programs provided with static_assert">
|
||
<colgroup>
|
||
<col>
|
||
<col>
|
||
<col>
|
||
</colgroup>
|
||
<thead><tr>
|
||
<th>
|
||
<p>
|
||
Test Program
|
||
</p>
|
||
</th>
|
||
<th>
|
||
<p>
|
||
Expected to Compile
|
||
</p>
|
||
</th>
|
||
<th>
|
||
<p>
|
||
Description
|
||
</p>
|
||
</th>
|
||
</tr></thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/example/static_assert_example_1.cpp" target="_top">static_assert_example_1.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Platform dependent.
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Namespace scope test program, may compile depending upon the platform.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/example/static_assert_example_2.cpp" target="_top">static_assert_example_2.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Yes
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Function scope test program.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/example/static_assert_example_3.cpp" target="_top">static_assert_example_3.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Yes
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Class scope test program.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test.cpp" target="_top">static_assert_test.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Yes
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates usage, and should always compile, really just tests compiler
|
||
compatibility.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_1.cpp" target="_top">static_assert_test_fail_1.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at namespace scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_2.cpp" target="_top">static_assert_test_fail_2.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at non-template function scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_3.cpp" target="_top">static_assert_test_fail_3.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at non-template class scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_4.cpp" target="_top">static_assert_test_fail_4.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at non-template class scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_5.cpp" target="_top">static_assert_test_fail_5.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at template class scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_6.cpp" target="_top">static_assert_test_fail_6.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure at template class member function scope.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_7.cpp" target="_top">static_assert_test_fail_7.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure of class scope example.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_8.cpp" target="_top">static_assert_test_fail_8.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure of function scope example.
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<a href="../../../libs/static_assert/test/static_assert_test_fail_9.cpp" target="_top">static_assert_test_fail_9.cpp</a>
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
No
|
||
</p>
|
||
</td>
|
||
<td>
|
||
<p>
|
||
Illustrates failure of function scope example (part 2).
|
||
</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<br class="table-break">
|
||
</div>
|
||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||
<td align="left"></td>
|
||
<td align="right"><div class="copyright-footer">Copyright © 2000, 2005 Steve Cleary and John Maddock<p>
|
||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">
|
||
http://www.boost.org/LICENSE_1_0.txt </a>)
|
||
</p>
|
||
</div></td>
|
||
</tr></table>
|
||
<hr>
|
||
<div class="spirit-nav">
|
||
<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="../stl_interfaces.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
|
||
</div>
|
||
</body>
|
||
</html>
|