[Boost-bugs] [Boost C++ Libraries] #11890: BOOST_DATA_TEST_CASE fails to compile for 4D and higher dimensional grids

Subject: [Boost-bugs] [Boost C++ Libraries] #11890: BOOST_DATA_TEST_CASE fails to compile for 4D and higher dimensional grids
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-06 13:33:21


#11890: BOOST_DATA_TEST_CASE fails to compile for 4D and higher dimensional grids
----------------------------------------------------+---------------------
 Reporter: Martin Schulze <spam.martin.schulze@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+---------------------
 Compiling the following code with GCC 5.3.0 (C++11/14) I get an error on
 the second but not on the first test case.

 {{{#!cpp
 #include <boost/test/included/unit_test.hpp>
 #include <boost/test/data/test_case.hpp>

 using boost::unit_test::data::xrange;

 BOOST_DATA_TEST_CASE(Test_3D_grid,
                      xrange(2) * xrange(2) * xrange(2), a, b, c) {}

 BOOST_DATA_TEST_CASE(Test_4D_grid,
                      xrange(2) * xrange(2) * xrange(2) * xrange(2), a, b,
 c,
                      d) {}
 }}}

 The error reads

 {{{
 /usr/include/boost/test/data/test_case.hpp:107:5: error: no matching
 function for call to 'bind(<unresolved overloaded function type>, const
 std::tuple<int, int, int>&, const int&)'
      BOOST_PP_REPEAT_FROM_TO(1, 4, TC_MAKE, _)
 }}}

 Are four and more parameters not supported for data test cases?

 The documentation says

> BOOST_DATA_TEST_CASE(test_case_name, dataset, var1, ..., varN) { /*
 datasets of arity N */ }

 without giving any limits on N.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11890>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC