mirror of
https://github.com/boostorg/static_assert.git
synced 2026-01-24 16:12:28 +01:00
Renamed over long file name.
[SVN r30007]
This commit is contained in:
18
static_assert_test_fail_10.cpp
Normal file
18
static_assert_test_fail_10.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//~ Copyright 2005 Redshift Software, Inc.
|
||||
//~ Distributed under the Boost Software License, Version 1.0.
|
||||
//~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
template <int N>
|
||||
int foo()
|
||||
{
|
||||
BOOST_STATIC_ASSERT( N < 2 );
|
||||
|
||||
return N;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
return foo<5>();
|
||||
}
|
||||
Reference in New Issue
Block a user