|
Boost-Commit : |
From: ramey_at_[hidden]
Date: 2008-04-04 13:03:22
Author: ramey
Date: 2008-04-04 13:03:21 EDT (Fri, 04 Apr 2008)
New Revision: 44039
URL: http://svn.boost.org/trac/boost/changeset/44039
Log:
enhanced test to detect more errors
Text files modified:
trunk/boost/static_warning.hpp | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
Modified: trunk/boost/static_warning.hpp
==============================================================================
--- trunk/boost/static_warning.hpp (original)
+++ trunk/boost/static_warning.hpp 2008-04-04 13:03:21 EDT (Fri, 04 Apr 2008)
@@ -128,13 +128,13 @@
//------------------Definition of BOOST_STATIC_WARNING------------------------//
#if defined(BOOST_HAS_DESCRIPTIVE_UNREFERENCED_VARIABLE_WARNING)
-# define BOOST_STATIC_WARNING_IMPL(B) \
- struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
- void f() { \
- ::boost::static_warning_impl<(bool)( B )>::type \
- STATIC_WARNING; \
- } \
- } \
+# define BOOST_STATIC_WARNING_IMPL(B) \
+ struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
+ void f() { \
+ ::boost::static_warning_impl<(bool)( B )>::type \
+ STATIC_WARNING; \
+ } \
+ } \
/**/
#elif defined(BOOST_HAS_DESCRIPTIVE_RETURNING_ADDRESS_OF_TEMPORARY_WARNING)
# define BOOST_STATIC_WARNING_IMPL(B) \
@@ -147,12 +147,13 @@
} \
/**/
#elif defined(BOOST_HAS_DESCRIPTIVE_DIVIDE_BY_ZERO_WARNING)
-# define BOOST_STATIC_WARNING_IMPL(B) \
- struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
- int f() { int STATIC_WARNING = 1; \
- return STATIC_WARNING / \
- boost::static_warning_impl<(bool)( B )>::value; } \
- } \
+# define BOOST_STATIC_WARNING_IMPL(B) \
+ struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
+ int f() { \
+ int STATIC_WARNING = 1; \
+ return STATIC_WARNING / \
+ boost::static_warning_impl<(bool)( B )>::value; } \
+ } \
/**/
#elif defined(BOOST_NO_PREDEFINED_LINE_MACRO)
// VC6; __LINE__ macro broken when -ZI is used see Q199057, so
@@ -166,7 +167,7 @@
} \
/**/
#else // Deletion of pointer to incomplete type.
-# define BOOST_STATIC_WARNING_IMPL(B) \
+# define BOOST_STATIC_WARNING_IMPL(B) \
struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
::boost::static_warning_impl<(bool)( B )>::type* p; \
void f() { delete p; } \
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk