Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in test_get_or.cpp #77

Open
safrooze opened this issue Jul 22, 2019 · 2 comments
Open

Compile error in test_get_or.cpp #77

safrooze opened this issue Jul 22, 2019 · 2 comments

Comments

@safrooze
Copy link

I get the following compile error, which I believe may be related to boost version. I'm using boost 1.65.1 which is the libboost-dev version in Ubuntu 18.04. What version of Boost are you using?

/usr/include/boost/mpl/for_each.hpp: In instantiation of 'void boost::mpl::for_each(F, Sequence*, TransformOp*) [with Sequence = std::tuple<toml::basic_value<toml::discard_comments, std::unordered_map, std::vector>, toml::basic_value<toml::preserve_comments, std::unordered_map, std::vector>, toml::basic_value<toml::discard_comments, std::map, std::deque>, toml::basic_value<toml::preserve_comments, std::map, std::deque> >; TransformOp = boost::mpl::make_identity<mpl_::arg<-1> >; F = boost::unit_test::ut_detail::generate_test_case_4_type<boost::unit_test::ut_detail::template_test_case_gen<test_get_or_fallback_invoker, std::tuple<toml::basic_value<toml::discard_comments, std::unordered_map, std::vector>, toml::basic_value<toml::preserve_comments, std::unordered_map, std::vector>, toml::basic_value<toml::discard_comments, std::map, std::deque>, toml::basic_value<toml::preserve_comments, std::map, std::deque> > >, test_get_or_fallback_invoker>]':
/usr/include/boost/test/tree/test_case_template.hpp:117:65:   required from 'boost::unit_test::ut_detail::template_test_case_gen<TestCaseTemplate, TestTypesList>::template_test_case_gen(boost::unit_test::const_string, boost::unit_test::const_string, std::size_t) [with TestCaseTemplate = test_get_or_fallback_invoker; TestTypesList = std::tuple<toml::basic_value<toml::discard_comments, std::unordered_map, std::vector>, toml::basic_value<toml::preserve_comments, std::unordered_map, std::vector>, toml::basic_value<toml::discard_comments, std::map, std::deque>, toml::basic_value<toml::preserve_comments, std::map, std::deque> >; boost::unit_test::const_string = boost::unit_test::basic_cstring<const char>; std::size_t = long unsigned int]'
/home/user/code/toml11/tests/test_get_or.cpp:182:1:   required from here
/usr/include/boost/mpl/for_each.hpp:99:5: error: no matching function for call to 'assertion_failed<false>(mpl_::failed************ boost::mpl::is_sequence<std::tuple<toml::basic_value<toml::discard_comments, std::unordered_map, std::vector>, toml::basic_value<toml::preserve_comments, std::unordered_map, std::vector>, toml::basic_value<toml::discard_comments, std::map, std::deque>, toml::basic_value<toml::preserve_comments, std::map, std::deque> > >::************)'
     BOOST_MPL_ASSERT(( is_sequence<Sequence> ));
     ^
@ToruNiina
Copy link
Owner

It requires at Boost 1.67 or later because it uses std::tuple<...> as a sequence of types instead of mpl::list.

https://www.boost.org/doc/libs/1_67_0/libs/test/doc/html/boost_test/change_log.html

@Gonglja
Copy link

Gonglja commented Nov 23, 2019

Thank you, I can compile the latest version of boost. @ToruNiina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants