[Boost-bugs] [Boost C++ Libraries] #13387: Test header fails to compile

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