Subject: [Boost-bugs] [Boost C++ Libraries] #13387: Test header fails to compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-10 22:46:23
#13387: Test header fails to compile
---------------------------------------+-------------------------------
Reporter: Tony Lewis <tonyelewis@â¦> | Owner: Gennadiy Rozental
Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
Version: Boost Development Trunk | Severity: Problem
Keywords: test,header,data |
---------------------------------------+-------------------------------
The Boost header policy (http://www.boost.org/development/header.html)
requires:
> Make sure that a translation unit consisting of just the contents of the
header file will compile successfully.
...but compiling:
{{{
#!cpp
#include <boost/test/data/test_case.hpp>
}}}
...gives errors...
{{{
In file included from geoff.cpp:1:0:
/tmp/test-develop/include/boost/test/data/test_case.hpp:198:18: error:
âlistâ in namespace âstdâ does not name a template type
mutable std::list<test_unit*> m_test_cases;
^~~~
/tmp/test-develop/include/boost/test/data/test_case.hpp: In constructor
âboost::unit_test::data::ds_detail::test_case_gen<TestCase,
DataSet>::test_case_gen(boost::unit_test::data::ds_detail::test_case_gen<TestCase,
DataSet>&&)â:
/tmp/test-develop/include/boost/test/data/test_case.hpp:138:7: error:
class âboost::unit_test::data::ds_detail::test_case_gen<TestCase,
DataSet>â does not have any field named âm_test_casesâ
, m_test_cases( std::move(gen.m_test_cases) )
^~~~~~~~~~~~
/tmp/test-develop/include/boost/test/data/test_case.hpp: In member
function âvirtual boost::unit_test::test_unit*
boost::unit_test::data::ds_detail::test_case_gen<TestCase,
DataSet>::next() constâ:
/tmp/test-develop/include/boost/test/data/test_case.hpp:153:13: error:
âm_test_casesâ was not declared in this scope
if( m_test_cases.empty() )
^~~~~~~~~~~~
/tmp/test-develop/include/boost/test/data/test_case.hpp:156:26: error:
âm_test_casesâ was not declared in this scope
test_unit* res = m_test_cases.front();
^~~~~~~~~~~~
/tmp/test-develop/include/boost/test/data/test_case.hpp: In member
function âvoid boost::unit_test::data::ds_detail::test_case_gen<TestCase,
DataSet>::operator()(Arg&& ...) constâ:
/tmp/test-develop/include/boost/test/data/test_case.hpp:178:9: error:
âm_test_casesâ was not declared in this scope
m_test_cases.push_back(
^~~~~~~~~~~~
}}}
This follows on from ticket:12228.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13387> 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 : 2018-01-10 22:50:39 UTC