mirror of
https://github.com/boostorg/static_assert.git
synced 2025-06-27 21:11:01 +02:00
Compare commits
3 Commits
boost-1.28
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
46b4482b2f | |||
9d3c2ed75f | |||
38b5799e33 |
8
Jamfile
8
Jamfile
@ -2,15 +2,15 @@ subproject libs/static_assert ;
|
|||||||
|
|
||||||
|
|
||||||
unit-test static_assert_test : static_assert_test.cpp
|
unit-test static_assert_test : static_assert_test.cpp
|
||||||
: <include>$(BOOST_ROOT) : ;
|
: <sysinclude>$(BOOST_ROOT) : ;
|
||||||
|
|
||||||
unit-test static_assert_example_1 : static_assert_example_1.cpp
|
unit-test static_assert_example_1 : static_assert_example_1.cpp
|
||||||
: <include>$(BOOST_ROOT) : ;
|
: <sysinclude>$(BOOST_ROOT) : ;
|
||||||
|
|
||||||
unit-test static_assert_example_2 : static_assert_example_2.cpp
|
unit-test static_assert_example_2 : static_assert_example_2.cpp
|
||||||
: <include>$(BOOST_ROOT) : ;
|
: <sysinclude>$(BOOST_ROOT) : ;
|
||||||
|
|
||||||
unit-test static_assert_example_3 : static_assert_example_3.cpp
|
unit-test static_assert_example_3 : static_assert_example_3.cpp
|
||||||
: <include>$(BOOST_ROOT) : ;
|
: <sysinclude>$(BOOST_ROOT) : ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ struct Bob
|
|||||||
char c;
|
char c;
|
||||||
int f()
|
int f()
|
||||||
{
|
{
|
||||||
#ifndef BOOST_MSVC // broken sizeof in VC6
|
#if !defined(BOOST_MSVC) || BOOST_MSVC > 1200 // broken sizeof in VC6
|
||||||
BOOST_STATIC_ASSERT(sizeof(x) == 4);
|
BOOST_STATIC_ASSERT(sizeof(x) == 4);
|
||||||
BOOST_STATIC_ASSERT(sizeof(c) == 1);
|
BOOST_STATIC_ASSERT(sizeof(c) == 1);
|
||||||
BOOST_STATIC_ASSERT((sizeof(x) == sizeof(c))); // should not compile
|
BOOST_STATIC_ASSERT((sizeof(x) == sizeof(c))); // should not compile
|
||||||
|
Reference in New Issue
Block a user