• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Test Programs</title>
6<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../boost_staticassert.html" title="Chapter 37. Boost.StaticAssert">
10<link rel="prev" href="how.html" title="How it works">
11<link rel="next" href="../stl_interfaces.html" title="Chapter 38. Boost.STLInterfaces">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
16<td align="center"><a href="../../../index.html">Home</a></td>
17<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<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>
25</div>
26<div class="section">
27<div class="titlepage"><div><div><h2 class="title" style="clear: both">
28<a name="boost_staticassert.test"></a>Test Programs</h2></div></div></div>
29<div class="table">
30<a name="boost_staticassert.test.t0"></a><p class="title"><b>Table 37.1. Test programs provided with static_assert</b></p>
31<div class="table-contents"><table class="table" summary="Test programs provided with static_assert">
32<colgroup>
33<col>
34<col>
35<col>
36</colgroup>
37<thead><tr>
38<th>
39              <p>
40                Test Program
41              </p>
42            </th>
43<th>
44              <p>
45                Expected to Compile
46              </p>
47            </th>
48<th>
49              <p>
50                Description
51              </p>
52            </th>
53</tr></thead>
54<tbody>
55<tr>
56<td>
57              <p>
58                <a href="../../../libs/static_assert/example/static_assert_example_1.cpp" target="_top">static_assert_example_1.cpp</a>
59              </p>
60            </td>
61<td>
62              <p>
63                Platform dependent.
64              </p>
65            </td>
66<td>
67              <p>
68                Namespace scope test program, may compile depending upon the platform.
69              </p>
70            </td>
71</tr>
72<tr>
73<td>
74              <p>
75                <a href="../../../libs/static_assert/example/static_assert_example_2.cpp" target="_top">static_assert_example_2.cpp</a>
76              </p>
77            </td>
78<td>
79              <p>
80                Yes
81              </p>
82            </td>
83<td>
84              <p>
85                Function scope test program.
86              </p>
87            </td>
88</tr>
89<tr>
90<td>
91              <p>
92                <a href="../../../libs/static_assert/example/static_assert_example_3.cpp" target="_top">static_assert_example_3.cpp</a>
93              </p>
94            </td>
95<td>
96              <p>
97                Yes
98              </p>
99            </td>
100<td>
101              <p>
102                Class scope test program.
103              </p>
104            </td>
105</tr>
106<tr>
107<td>
108              <p>
109                <a href="../../../libs/static_assert/test/static_assert_test.cpp" target="_top">static_assert_test.cpp</a>
110              </p>
111            </td>
112<td>
113              <p>
114                Yes
115              </p>
116            </td>
117<td>
118              <p>
119                Illustrates usage, and should always compile, really just tests compiler
120                compatibility.
121              </p>
122            </td>
123</tr>
124<tr>
125<td>
126              <p>
127                <a href="../../../libs/static_assert/test/static_assert_test_fail_1.cpp" target="_top">static_assert_test_fail_1.cpp</a>
128              </p>
129            </td>
130<td>
131              <p>
132                No
133              </p>
134            </td>
135<td>
136              <p>
137                Illustrates failure at namespace scope.
138              </p>
139            </td>
140</tr>
141<tr>
142<td>
143              <p>
144                <a href="../../../libs/static_assert/test/static_assert_test_fail_2.cpp" target="_top">static_assert_test_fail_2.cpp</a>
145              </p>
146            </td>
147<td>
148              <p>
149                No
150              </p>
151            </td>
152<td>
153              <p>
154                Illustrates failure at non-template function scope.
155              </p>
156            </td>
157</tr>
158<tr>
159<td>
160              <p>
161                <a href="../../../libs/static_assert/test/static_assert_test_fail_3.cpp" target="_top">static_assert_test_fail_3.cpp</a>
162              </p>
163            </td>
164<td>
165              <p>
166                No
167              </p>
168            </td>
169<td>
170              <p>
171                Illustrates failure at non-template class scope.
172              </p>
173            </td>
174</tr>
175<tr>
176<td>
177              <p>
178                <a href="../../../libs/static_assert/test/static_assert_test_fail_4.cpp" target="_top">static_assert_test_fail_4.cpp</a>
179              </p>
180            </td>
181<td>
182              <p>
183                No
184              </p>
185            </td>
186<td>
187              <p>
188                Illustrates failure at non-template class scope.
189              </p>
190            </td>
191</tr>
192<tr>
193<td>
194              <p>
195                <a href="../../../libs/static_assert/test/static_assert_test_fail_5.cpp" target="_top">static_assert_test_fail_5.cpp</a>
196              </p>
197            </td>
198<td>
199              <p>
200                No
201              </p>
202            </td>
203<td>
204              <p>
205                Illustrates failure at template class scope.
206              </p>
207            </td>
208</tr>
209<tr>
210<td>
211              <p>
212                <a href="../../../libs/static_assert/test/static_assert_test_fail_6.cpp" target="_top">static_assert_test_fail_6.cpp</a>
213              </p>
214            </td>
215<td>
216              <p>
217                No
218              </p>
219            </td>
220<td>
221              <p>
222                Illustrates failure at template class member function scope.
223              </p>
224            </td>
225</tr>
226<tr>
227<td>
228              <p>
229                <a href="../../../libs/static_assert/test/static_assert_test_fail_7.cpp" target="_top">static_assert_test_fail_7.cpp</a>
230              </p>
231            </td>
232<td>
233              <p>
234                No
235              </p>
236            </td>
237<td>
238              <p>
239                Illustrates failure of class scope example.
240              </p>
241            </td>
242</tr>
243<tr>
244<td>
245              <p>
246                <a href="../../../libs/static_assert/test/static_assert_test_fail_8.cpp" target="_top">static_assert_test_fail_8.cpp</a>
247              </p>
248            </td>
249<td>
250              <p>
251                No
252              </p>
253            </td>
254<td>
255              <p>
256                Illustrates failure of function scope example.
257              </p>
258            </td>
259</tr>
260<tr>
261<td>
262              <p>
263                <a href="../../../libs/static_assert/test/static_assert_test_fail_9.cpp" target="_top">static_assert_test_fail_9.cpp</a>
264              </p>
265            </td>
266<td>
267              <p>
268                No
269              </p>
270            </td>
271<td>
272              <p>
273                Illustrates failure of function scope example (part 2).
274              </p>
275            </td>
276</tr>
277</tbody>
278</table></div>
279</div>
280<br class="table-break">
281</div>
282<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
283<td align="left"></td>
284<td align="right"><div class="copyright-footer">Copyright © 2000, 2005 Steve Cleary and John Maddock<p>
285        Distributed under the Boost Software License, Version 1.0. (See accompanying
286        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">
287        http://www.boost.org/LICENSE_1_0.txt </a>)
288      </p>
289</div></td>
290</tr></table>
291<hr>
292<div class="spirit-nav">
293<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>
294</div>
295</body>
296</html>
297