diff --git a/example/static_assert_example_1.cpp b/example/static_assert_example_1.cpp index 14c529c3..130625c9 100644 --- a/example/static_assert_example_1.cpp +++ b/example/static_assert_example_1.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -28,7 +28,3 @@ int main() { return 0; } - - - - diff --git a/example/static_assert_example_2.cpp b/example/static_assert_example_2.cpp index d21bd573..adbf32d8 100644 --- a/example/static_assert_example_2.cpp +++ b/example/static_assert_example_2.cpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -31,10 +31,3 @@ int main() //foo(l.begin(), l.end()); // error return 0; } - - - - - - - diff --git a/example/static_assert_example_3.cpp b/example/static_assert_example_3.cpp index 1cc15450..2586e33b 100644 --- a/example/static_assert_example_3.cpp +++ b/example/static_assert_example_3.cpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -29,5 +29,3 @@ int main() { return 0; } - - diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index d94ca807..5aef6c63 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/static_assert for documentation. @@ -121,13 +121,13 @@ template struct static_assert_test{}; sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST (__VA_ARGS__) >)>\ BOOST_JOIN(boost_static_assert_typedef_, __COUNTER__) #elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && defined(BOOST_NO_CXX11_VARIADIC_MACROS) -// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error +// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error // instead of warning in case of failure # define BOOST_STATIC_ASSERT( B ) \ typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \ [ ::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( B ) >::value ] #elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && !defined(BOOST_NO_CXX11_VARIADIC_MACROS) -// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error +// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error // instead of warning in case of failure # define BOOST_STATIC_ASSERT(...) \ typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \ @@ -177,5 +177,3 @@ template struct static_assert_test{}; #endif // defined(BOOST_NO_CXX11_STATIC_ASSERT) #endif // BOOST_STATIC_ASSERT_HPP - - diff --git a/test/static_assert_test.cpp b/test/static_assert_test.cpp index bddebcb3..6427f88d 100644 --- a/test/static_assert_test.cpp +++ b/test/static_assert_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -88,7 +88,7 @@ void test_Bill() // BOOST_STATIC_ASSERTs are not triggerred until instantiated } int main() -{ +{ test_Bill(); // // Test variadic macro support: @@ -99,9 +99,5 @@ int main() BOOST_STATIC_ASSERT_MSG(Bill::value, "This is a message"); #endif #endif - return 0; + return 0; } - - - - diff --git a/test/static_assert_test_fail_1.cpp b/test/static_assert_test_fail_1.cpp index d8e01075..b0ae6a8b 100644 --- a/test/static_assert_test_fail_1.cpp +++ b/test/static_assert_test_fail_1.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -15,9 +15,3 @@ typedef char a2[3]; // Namespace scope BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // will not compile - - - - - - diff --git a/test/static_assert_test_fail_10.cpp b/test/static_assert_test_fail_10.cpp index ddc2d1a5..83649bc7 100644 --- a/test/static_assert_test_fail_10.cpp +++ b/test/static_assert_test_fail_10.cpp @@ -8,7 +8,7 @@ template int foo() { BOOST_STATIC_ASSERT( N < 2 ); - + return N; } diff --git a/test/static_assert_test_fail_2.cpp b/test/static_assert_test_fail_2.cpp index c75de491..a70ed027 100644 --- a/test/static_assert_test_fail_2.cpp +++ b/test/static_assert_test_fail_2.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -18,8 +18,3 @@ void f() { BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // should not compile } - - - - - diff --git a/test/static_assert_test_fail_3.cpp b/test/static_assert_test_fail_3.cpp index 182658a4..2eddc592 100644 --- a/test/static_assert_test_fail_3.cpp +++ b/test/static_assert_test_fail_3.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -31,9 +31,3 @@ struct Bob return x; } }; - - - - - - diff --git a/test/static_assert_test_fail_4.cpp b/test/static_assert_test_fail_4.cpp index 89c27329..6a1551a3 100644 --- a/test/static_assert_test_fail_4.cpp +++ b/test/static_assert_test_fail_4.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -30,9 +30,3 @@ struct Bob return x; } }; - - - - - - diff --git a/test/static_assert_test_fail_5.cpp b/test/static_assert_test_fail_5.cpp index 155c199e..c330080e 100644 --- a/test/static_assert_test_fail_5.cpp +++ b/test/static_assert_test_fail_5.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -33,7 +33,3 @@ struct Bill }; Bill b; - - - - diff --git a/test/static_assert_test_fail_6.cpp b/test/static_assert_test_fail_6.cpp index b41aa747..39662629 100644 --- a/test/static_assert_test_fail_6.cpp +++ b/test/static_assert_test_fail_6.cpp @@ -1,6 +1,6 @@ // (C) Copyright Steve Cleary & John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -40,7 +40,3 @@ void foo() // this should fail: b.f(i, c); } - - - - diff --git a/test/static_assert_test_fail_7.cpp b/test/static_assert_test_fail_7.cpp index 7e901269..9ca75baf 100644 --- a/test/static_assert_test_fail_7.cpp +++ b/test/static_assert_test_fail_7.cpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -28,4 +28,3 @@ int main() { return 0; } - diff --git a/test/static_assert_test_fail_8.cpp b/test/static_assert_test_fail_8.cpp index a087bb70..1099c97c 100644 --- a/test/static_assert_test_fail_8.cpp +++ b/test/static_assert_test_fail_8.cpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -37,8 +37,3 @@ int main() foo(l.begin(), l.end()); // error return 0; } - - - - - diff --git a/test/static_assert_test_fail_9.cpp b/test/static_assert_test_fail_9.cpp index 09e4af9e..7cf2fa1a 100644 --- a/test/static_assert_test_fail_9.cpp +++ b/test/static_assert_test_fail_9.cpp @@ -1,6 +1,6 @@ // (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for most recent version including documentation. @@ -29,4 +29,3 @@ int main() { return 0; } -