|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81142 - trunk/boost/test/data
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-01 20:14:02
Author: rogeeff
Date: 2012-11-01 20:14:01 EDT (Thu, 01 Nov 2012)
New Revision: 81142
URL: http://svn.boost.org/trac/boost/changeset/81142
Log:
MSVC fix
Text files modified:
trunk/boost/test/data/test_case.hpp | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
Modified: trunk/boost/test/data/test_case.hpp
==============================================================================
--- trunk/boost/test/data/test_case.hpp (original)
+++ trunk/boost/test/data/test_case.hpp 2012-11-01 20:14:01 EDT (Thu, 01 Nov 2012)
@@ -147,11 +147,22 @@
BOOST_DATA_TEST_CASE_WITH_PARAMS( test_name, dataset, sample ) \
/**/
+#if BOOST_PP_VARIADICS_MSVC
+
+#define BOOST_DATA_TEST_CASE( ... ) \
+ BOOST_PP_CAT( \
+ BOOST_PP_IIF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),2), \
+ BOOST_DATA_TEST_CASE_NO_PARAMS, \
+ BOOST_DATA_TEST_CASE_WITH_PARAMS) (__VA_ARGS__), ) \
+/**/
+#else
+
#define BOOST_DATA_TEST_CASE( ... ) \
BOOST_PP_IIF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),2), \
- BOOST_DATA_TEST_CASE_NO_PARAMS, \
- BOOST_DATA_TEST_CASE_WITH_PARAMS)(__VA_ARGS__) \
+ BOOST_DATA_TEST_CASE_NO_PARAMS, \
+ BOOST_DATA_TEST_CASE_WITH_PARAMS) (__VA_ARGS__) \
/**/
+#endif
} // namespace data
} // namespace unit_test
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