Files
core/test/static_assert_fail4.cpp

17 lines
296 B
C++
Raw Normal View History

2025-10-20 18:57:38 +03:00
// Copyright 2025 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/detail/static_assert.hpp>
2025-10-20 18:57:38 +03:00
template<int C> struct X
{
BOOST_CORE_STATIC_ASSERT( C >= 0 );
};
int main()
{
X< -4 > x;
(void)x;
}