mirror of
https://github.com/boostorg/static_assert.git
synced 2025-07-15 21:52:09 +02:00
Changed tests to guarantee portability
[SVN r22245]
This commit is contained in:
@ -10,9 +10,11 @@
|
||||
//
|
||||
// all these tests should fail:
|
||||
//
|
||||
typedef char a1[2];
|
||||
typedef char a2[3];
|
||||
|
||||
// Namespace scope
|
||||
BOOST_STATIC_ASSERT(sizeof(int) == sizeof(char)); // will not compile
|
||||
BOOST_STATIC_ASSERT(sizeof(a1) == sizeof(a2)); // will not compile
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user