mirror of
https://github.com/boostorg/static_assert.git
synced 2025-07-24 17:57:21 +02:00
Added comment about lack of static_cast
[SVN r10243]
This commit is contained in:
@ -53,6 +53,9 @@ template<int x> struct static_assert_test{};
|
|||||||
// an eye catching error message. The result of the sizeof expression is either
|
// an eye catching error message. The result of the sizeof expression is either
|
||||||
// used as an enum initialiser, or as a template argument depending which version
|
// used as an enum initialiser, or as a template argument depending which version
|
||||||
// is in use...
|
// is in use...
|
||||||
|
// Note that the argument to the assert is explicitly cast to bool using old-
|
||||||
|
// style casts: too many compilers currently have problems with static_cast
|
||||||
|
// when used inside integral constant expressions.
|
||||||
//
|
//
|
||||||
#if !defined(BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS) && !defined(__MWERKS__)
|
#if !defined(BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS) && !defined(__MWERKS__)
|
||||||
#ifndef BOOST_MSVC
|
#ifndef BOOST_MSVC
|
||||||
|
Reference in New Issue
Block a user