Last change
on this file since 33 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
348 bytes
|
Line | |
---|
1 | //~ Copyright 2005 Redshift Software, Inc. |
---|
2 | //~ Distributed under the Boost Software License, Version 1.0. |
---|
3 | //~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | |
---|
5 | #include <boost/static_assert.hpp> |
---|
6 | |
---|
7 | template <int N> |
---|
8 | int foo() |
---|
9 | { |
---|
10 | BOOST_STATIC_ASSERT( N < 2 ); |
---|
11 | |
---|
12 | return N; |
---|
13 | } |
---|
14 | |
---|
15 | int main() |
---|
16 | { |
---|
17 | return foo<5>(); |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.