Boost C++ Libraries: Ticket #11890: BOOST_DATA_TEST_CASE fails to compile for 4D and higher dimensional grids https://svn.boost.org/trac10/ticket/11890 <p> 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. </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/test/included/unit_test.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;boost/test/data/test_case.hpp&gt;</span><span class="cp"></span> <span class="k">using</span> <span class="n">boost</span><span class="o">::</span><span class="n">unit_test</span><span class="o">::</span><span class="n">data</span><span class="o">::</span><span class="n">xrange</span><span class="p">;</span> <span class="n">BOOST_DATA_TEST_CASE</span><span class="p">(</span><span class="n">Test_3D_grid</span><span class="p">,</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="o">*</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="o">*</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">),</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">)</span> <span class="p">{}</span> <span class="n">BOOST_DATA_TEST_CASE</span><span class="p">(</span><span class="n">Test_4D_grid</span><span class="p">,</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="o">*</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="o">*</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="o">*</span> <span class="n">xrange</span><span class="p">(</span><span class="mi">2</span><span class="p">),</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="p">{}</span> </pre></div></div><p> The error reads </p> <pre class="wiki">/usr/include/boost/test/data/test_case.hpp:107:5: error: no matching function for call to 'bind(&lt;unresolved overloaded function type&gt;, const std::tuple&lt;int, int, int&gt;&amp;, const int&amp;)' BOOST_PP_REPEAT_FROM_TO(1, 4, TC_MAKE, _) </pre><p> Are four and more parameters not supported for data test cases? </p> <p> The documentation says </p> <blockquote class="citation"> <p> BOOST_DATA_TEST_CASE(test_case_name, dataset, var1, ..., varN) { /* datasets of arity N */ } </p> </blockquote> <p> without giving any limits on N. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11890 Trac 1.4.3 Raffi Enficiaud Sat, 09 Jan 2016 14:37:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11890#comment:1 https://svn.boost.org/trac10/ticket/11890#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11889" title="#11889: Bugs: BOOST_DATA_TEST_CASE fails to compile for 4D and higher dimensional grids (closed: fixed)">#11889</a> </p> Ticket