summaryrefslogtreecommitdiff
path: root/boost/test/data/test_case.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/test/data/test_case.hpp')
-rw-r--r--boost/test/data/test_case.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/boost/test/data/test_case.hpp b/boost/test/data/test_case.hpp
index 2275f90fff..01dc91b06a 100644
--- a/boost/test/data/test_case.hpp
+++ b/boost/test/data/test_case.hpp
@@ -33,13 +33,16 @@
#include <boost/preprocessor/comparison/equal.hpp>
#include <boost/bind.hpp>
-
#include <boost/type_traits/is_copy_constructible.hpp>
-#include <boost/test/detail/suppress_warnings.hpp>
#include <boost/test/tools/detail/print_helper.hpp>
#include <boost/test/utils/string_cast.hpp>
+#include <list>
+#include <string>
+
+#include <boost/test/detail/suppress_warnings.hpp>
+
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) \
&& !defined(BOOST_TEST_DATASET_MAX_ARITY)
# define BOOST_TEST_DATASET_MAX_ARITY 10
@@ -161,6 +164,7 @@ public:
#if !defined(BOOST_TEST_DATASET_VARIADIC)
// see BOOST_TEST_DATASET_MAX_ARITY to increase the default supported arity
+ // there is also a limit on boost::bind
#define TC_MAKE(z,arity,_) \
template<BOOST_PP_ENUM_PARAMS(arity, typename Arg)> \
void operator()( BOOST_PP_ENUM_BINARY_PARAMS(arity, Arg, const& arg) ) const \
@@ -179,8 +183,8 @@ public:
new test_case( genTestCaseName(),
m_tc_file,
m_tc_line,
- boost::bind( &TestCase::template test_method<Arg...>,
- boost_bind_rvalue_holder_helper(std::forward<Arg>(arg))...)));
+ std::bind( &TestCase::template test_method<Arg...>,
+ boost_bind_rvalue_holder_helper(std::forward<Arg>(arg))...)));
}
#endif