Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65823 - sandbox/variadic_macro_data/libs/variadic_macro_data/test
From: eldiener_at_[hidden]
Date: 2010-10-07 23:58:43


Author: eldiener
Date: 2010-10-07 23:58:40 EDT (Thu, 07 Oct 2010)
New Revision: 65823
URL: http://svn.boost.org/trac/boost/changeset/65823

Log:
Put VC++ progma around warning area
Text files modified:
   sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsArray.cpp | 13 +++++++++++++
   sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsList.cpp | 13 +++++++++++++
   sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsSequence.cpp | 13 +++++++++++++
   sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp | 13 +++++++++++++
   4 files changed, 52 insertions(+), 0 deletions(-)

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsArray.cpp
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsArray.cpp (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsArray.cpp 2010-10-07 23:58:40 EDT (Thu, 07 Oct 2010)
@@ -28,8 +28,21 @@
       } \
   /**/
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( push )
+#pragma warning( disable : 4127 )
+
+#endif
+
   BOOST_PP_REPEAT(BOOST_PP_ARRAY_SIZE(VMD_TEST_ARRAY_NUMBERS),VMD_TEST_ADD_TO_INT,VMD_TEST_ARRAY_NUMBERS)
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( pop )
+
+#endif
+
   addedNumber += VMD_DATA_ELEM(5,VMD_PP_ARRAY_TO_DATA(VMD_TEST_ARRAY_NUMBERS));
   
   BOOST_TEST_EQ(addedNumber,47+69+23+985+458+77+12457+89+99872+77);

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsList.cpp
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsList.cpp (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsList.cpp 2010-10-07 23:58:40 EDT (Thu, 07 Oct 2010)
@@ -28,8 +28,21 @@
       } \
   /**/
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( push )
+#pragma warning( disable : 4127 )
+
+#endif
+
   BOOST_PP_REPEAT(BOOST_PP_LIST_SIZE(VMD_TEST_LIST_NUMBERS),VMD_TEST_ADD_TO_INT,VMD_TEST_LIST_NUMBERS)
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( pop )
+
+#endif
+
   addedNumber += VMD_DATA_ELEM(8,VMD_PP_LIST_TO_DATA(VMD_TEST_LIST_NUMBERS));
   
   BOOST_TEST_EQ(addedNumber,34+23467+12+9984+34+678+7890+1235678+3489+1+8965+345+3489);

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsSequence.cpp
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsSequence.cpp (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsSequence.cpp 2010-10-07 23:58:40 EDT (Thu, 07 Oct 2010)
@@ -28,8 +28,21 @@
       } \
   /**/
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( push )
+#pragma warning( disable : 4127 )
+
+#endif
+
   BOOST_PP_REPEAT(BOOST_PP_SEQ_SIZE(VMD_TEST_SEQ_NUMBERS),VMD_TEST_ADD_TO_INT,VMD_TEST_SEQ_NUMBERS)
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( pop )
+
+#endif
+
   addedNumber += VMD_DATA_ELEM(2,VMD_PP_SEQ_TO_DATA(VMD_TEST_SEQ_NUMBERS));
   
   BOOST_TEST_EQ(addedNumber,4578+24+789436+78345+902+345+860+667433+56+727+47891+789436);

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp 2010-10-07 23:58:40 EDT (Thu, 07 Oct 2010)
@@ -38,8 +38,21 @@
       } \
   /**/
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( push )
+#pragma warning( disable : 4127 )
+
+#endif
+
   BOOST_PP_REPEAT(VMD_PP_TUPLE_SIZE(VMD_TEST_TUPLE_NUMBERS),VMD_TEST_ADD_TO_INT,VMD_TEST_TUPLE_NUMBERS)
   
+#if defined(BOOST_MSVC)
+
+#pragma warning( pop )
+
+#endif
+
   addedNumber += VMD_DATA_ELEM(5,VMD_PP_TUPLE_TO_DATA(VMD_TEST_TUPLE_NUMBERS));
   addedNumber += VMD_DATA_ELEM(3,BOOST_PP_TUPLE_REM(VMD_PP_TUPLE_SIZE(VMD_TEST_TUPLE_NUMBERS))(23,45,147,6,7743,12,67,43,89045,82));
   addedNumber += VMD_DATA_ELEM(4,VMD_PP_TUPLE_REM_CTOR(VMD_TEST_TUPLE_NUMBERS));


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