nil.cpp 864 B

12345678910111213141516171819202122232425
  1. /*=============================================================================
  2. Copyright (c) 2014 Louis Dionne
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/detail/lightweight_test.hpp>
  7. #include <boost/fusion/container/list/cons_iterator.hpp>
  8. #include <boost/fusion/container/list/nil.hpp>
  9. #include <boost/fusion/support/config.hpp>
  10. #include <boost/mpl/bool.hpp>
  11. int main() {
  12. using namespace boost::fusion;
  13. // nil should be constexpr constructible
  14. {
  15. BOOST_CONSTEXPR nil x1 = nil();
  16. BOOST_CONSTEXPR nil x2 = nil(nil_iterator(), boost::mpl::true_());
  17. (void)x1; (void)x2;
  18. }
  19. return boost::report_errors();
  20. }