|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73444 - branches/pplib/v2/boost/preprocessor/facilities
From: eldiener_at_[hidden]
Date: 2011-07-30 11:19:43
Author: eldiener
Date: 2011-07-30 11:19:42 EDT (Sat, 30 Jul 2011)
New Revision: 73444
URL: http://svn.boost.org/trac/boost/changeset/73444
Log:
Reduce warnings from preprocessor for VC++
Text files modified:
branches/pplib/v2/boost/preprocessor/facilities/is_empty.hpp | 46 ++++++++++++++++++++++-----------------
1 files changed, 26 insertions(+), 20 deletions(-)
Modified: branches/pplib/v2/boost/preprocessor/facilities/is_empty.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/facilities/is_empty.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/facilities/is_empty.hpp 2011-07-30 11:19:42 EDT (Sat, 30 Jul 2011)
@@ -25,6 +25,8 @@
# include <boost/preprocessor/arithmetic/dec.hpp>
# include <boost/preprocessor/variadic/size.hpp>
#
+# pragma warning(once:4002)
+#
# define BOOST_PP_IS_EMPTY_DETAIL_IS_TUPLE_BEGIN(x) \
BOOST_PP_DEC \
( \
@@ -39,14 +41,15 @@
1,1 \
/**/
#
-#define BOOST_PP_IS_EMPTY_DETAIL_GEN_ZERO(x) 0
-#define BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a, b) a ## b
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF(bit) \
+# define BOOST_PP_IS_EMPTY_DETAIL_GEN_ZERO(x) 0
+# define BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a, b) a ## b
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF(bit) \
BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(BOOST_PP_IS_EMPTY_DETAIL_IIF_,bit) \
/**/
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF_0(t, b) b
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF_1(t, b) t
-#define BOOST_PP_IS_EMPTY(param) \
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF_0(t, b) b
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF_1(t, b) t
+#
+# define BOOST_PP_IS_EMPTY(param) \
BOOST_PP_IS_EMPTY_DETAIL_IIF \
( \
BOOST_PP_DEC \
@@ -63,20 +66,22 @@
) \
(BOOST_PP_IS_EMPTY_DETAIL_IS_EMPTY_NON_FUNCTION_C param ()) \
/**/
+#
# else
-#define BOOST_PP_IS_EMPTY_DETAIL_CAT(a, ...) BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a,__VA_ARGS__)
-#define BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF(bit) \
+#
+# define BOOST_PP_IS_EMPTY_DETAIL_CAT(a, ...) BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a,__VA_ARGS__)
+# define BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF(bit) \
BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(BOOST_PP_IS_EMPTY_DETAIL_IIF_,bit) \
/**/
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF_0(t, ...) __VA_ARGS__
-#define BOOST_PP_IS_EMPTY_DETAIL_IIF_1(t, ...) t
-#define BOOST_PP_IS_EMPTY_DETAIL_SPLIT(i, ...) \
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF_0(t, ...) __VA_ARGS__
+# define BOOST_PP_IS_EMPTY_DETAIL_IIF_1(t, ...) t
+# define BOOST_PP_IS_EMPTY_DETAIL_SPLIT(i, ...) \
BOOST_PP_IS_EMPTY_DETAIL_PRIMITIVE_CAT(BOOST_PP_IS_EMPTY_DETAIL_SPLIT_,i)(__VA_ARGS__) \
/**/
-#define BOOST_PP_IS_EMPTY_DETAIL_SPLIT_0(a, ...) a
-#define BOOST_PP_IS_EMPTY_DETAIL_SPLIT_1(a, ...) __VA_ARGS__
-#define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC(...) \
+# define BOOST_PP_IS_EMPTY_DETAIL_SPLIT_0(a, ...) a
+# define BOOST_PP_IS_EMPTY_DETAIL_SPLIT_1(a, ...) __VA_ARGS__
+# define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC(...) \
BOOST_PP_IS_EMPTY_DETAIL_SPLIT \
( \
0, \
@@ -87,10 +92,10 @@
) \
) \
/**/
-#define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_C(...) 1
-#define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_R_1 1,
-#define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_R_BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_C 0,
-#define BOOST_PP_IS_EMPTY(...) \
+# define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_C(...) 1
+# define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_R_1 1,
+# define BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_R_BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC_C 0,
+# define BOOST_PP_IS_EMPTY(...) \
BOOST_PP_IS_EMPTY_DETAIL_IIF \
( \
BOOST_PP_IS_EMPTY_DETAIL_IS_VARIADIC \
@@ -107,7 +112,8 @@
) \
/**/
# endif
-#define BOOST_PP_IS_EMPTY_DETAIL_IS_EMPTY_NON_FUNCTION_C() ()
+#
+# define BOOST_PP_IS_EMPTY_DETAIL_IS_EMPTY_NON_FUNCTION_C() ()
#
# else
#
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