Imported Upstream version 1.57.0
[platform/upstream/boost.git] / doc / html / boost_staticassert / test.html
1 <html>
2 <head>
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.78.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&#160;28.&#160;Boost.StaticAssert">
9 <link rel="prev" href="how.html" title="How it works">
10 <link rel="next" href="../string_algo.html" title="Chapter&#160;29.&#160;Boost String Algorithms Library">
11 </head>
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>
20 </tr></table>
21 <hr>
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>
24 </div>
25 <div class="section">
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>
28 <div class="table">
29 <a name="boost_staticassert.test.t0"></a><p class="title"><b>Table&#160;28.1.&#160;Test programs provided with static_assert</b></p>
30 <div class="table-contents"><table class="table" summary="Test programs provided with static_assert">
31 <colgroup>
32 <col>
33 <col>
34 <col>
35 </colgroup>
36 <thead><tr>
37 <th>
38               <p>
39                 Test Program
40               </p>
41             </th>
42 <th>
43               <p>
44                 Expected to Compile
45               </p>
46             </th>
47 <th>
48               <p>
49                 Description
50               </p>
51             </th>
52 </tr></thead>
53 <tbody>
54 <tr>
55 <td>
56               <p>
57                 <a href="../../../libs/static_assert/static_assert_test.cpp" target="_top">static_assert_test.cpp</a>
58               </p>
59             </td>
60 <td>
61               <p>
62                 Yes
63               </p>
64             </td>
65 <td>
66               <p>
67                 Illustrates usage, and should always compile, really just tests compiler
68                 compatibility.
69               </p>
70             </td>
71 </tr>
72 <tr>
73 <td>
74               <p>
75                 <a href="../../../libs/static_assert/static_assert_example_1.cpp" target="_top">static_assert_example_1.cpp</a>
76               </p>
77             </td>
78 <td>
79               <p>
80                 Platform dependent.
81               </p>
82             </td>
83 <td>
84               <p>
85                 Namespace scope test program, may compile depending upon the platform.
86               </p>
87             </td>
88 </tr>
89 <tr>
90 <td>
91               <p>
92                 <a href="../../../libs/static_assert/static_assert_example_2.cpp" target="_top">static_assert_example_2.cpp</a>
93               </p>
94             </td>
95 <td>
96               <p>
97                 Yes
98               </p>
99             </td>
100 <td>
101               <p>
102                 Function scope test program.
103               </p>
104             </td>
105 </tr>
106 <tr>
107 <td>
108               <p>
109                 <a href="../../../libs/static_assert/static_assert_example_3.cpp" target="_top">static_assert_example_3.cpp</a>
110               </p>
111             </td>
112 <td>
113               <p>
114                 Yes
115               </p>
116             </td>
117 <td>
118               <p>
119                 Class scope test program.
120               </p>
121             </td>
122 </tr>
123 <tr>
124 <td>
125               <p>
126                 <a href="../../../libs/static_assert/static_assert_test_fail_1.cpp" target="_top">static_assert_test_fail_1.cpp</a>
127               </p>
128             </td>
129 <td>
130               <p>
131                 No
132               </p>
133             </td>
134 <td>
135               <p>
136                 Illustrates failure at namespace scope.
137               </p>
138             </td>
139 </tr>
140 <tr>
141 <td>
142               <p>
143                 <a href="../../../libs/static_assert/static_assert_test_fail_2.cpp" target="_top">static_assert_test_fail_2.cpp</a>
144               </p>
145             </td>
146 <td>
147               <p>
148                 No
149               </p>
150             </td>
151 <td>
152               <p>
153                 Illustrates failure at non-template function scope.
154               </p>
155             </td>
156 </tr>
157 <tr>
158 <td>
159               <p>
160                 <a href="../../../libs/static_assert/static_assert_test_fail_3.cpp" target="_top">static_assert_test_fail_3.cpp</a>
161               </p>
162             </td>
163 <td>
164               <p>
165                 No
166               </p>
167             </td>
168 <td>
169               <p>
170                 Illustrates failure at non-template class scope.
171               </p>
172             </td>
173 </tr>
174 <tr>
175 <td>
176               <p>
177                 <a href="../../../libs/static_assert/static_assert_test_fail_4.cpp" target="_top">static_assert_test_fail_4.cpp</a>
178               </p>
179             </td>
180 <td>
181               <p>
182                 No
183               </p>
184             </td>
185 <td>
186               <p>
187                 Illustrates failure at non-template class scope.
188               </p>
189             </td>
190 </tr>
191 <tr>
192 <td>
193               <p>
194                 <a href="../../../libs/static_assert/static_assert_test_fail_5.cpp" target="_top">static_assert_test_fail_5.cpp</a>
195               </p>
196             </td>
197 <td>
198               <p>
199                 No
200               </p>
201             </td>
202 <td>
203               <p>
204                 Illustrates failure at template class scope.
205               </p>
206             </td>
207 </tr>
208 <tr>
209 <td>
210               <p>
211                 <a href="../../../libs/static_assert/static_assert_test_fail_6.cpp" target="_top">static_assert_test_fail_6.cpp</a>
212               </p>
213             </td>
214 <td>
215               <p>
216                 No
217               </p>
218             </td>
219 <td>
220               <p>
221                 Illustrates failure at template class member function scope.
222               </p>
223             </td>
224 </tr>
225 <tr>
226 <td>
227               <p>
228                 <a href="../../../libs/static_assert/static_assert_test_fail_7.cpp" target="_top">static_assert_test_fail_7.cpp</a>
229               </p>
230             </td>
231 <td>
232               <p>
233                 No
234               </p>
235             </td>
236 <td>
237               <p>
238                 Illustrates failure of class scope example.
239               </p>
240             </td>
241 </tr>
242 <tr>
243 <td>
244               <p>
245                 <a href="../../../libs/static_assert/static_assert_test_fail_8.cpp" target="_top">static_assert_test_fail_8.cpp</a>
246               </p>
247             </td>
248 <td>
249               <p>
250                 No
251               </p>
252             </td>
253 <td>
254               <p>
255                 Illustrates failure of function scope example.
256               </p>
257             </td>
258 </tr>
259 <tr>
260 <td>
261               <p>
262                 <a href="../../../libs/static_assert/static_assert_test_fail_9.cpp" target="_top">static_assert_test_fail_9.cpp</a>
263               </p>
264             </td>
265 <td>
266               <p>
267                 No
268               </p>
269             </td>
270 <td>
271               <p>
272                 Illustrates failure of function scope example (part 2).
273               </p>
274             </td>
275 </tr>
276 </tbody>
277 </table></div>
278 </div>
279 <br class="table-break">
280 </div>
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 &#169; 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>)
287       </p>
288 </div></td>
289 </tr></table>
290 <hr>
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>
293 </div>
294 </body>
295 </html>