list_nest.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*=============================================================================
  2. Copyright (C) 2015 Kohei Takahshi
  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/fusion/container/list/list.hpp>
  7. #include <boost/core/lightweight_test.hpp>
  8. #define FUSION_SEQUENCE boost::fusion::list
  9. #include "nest.hpp"
  10. /* list has a few issues:
  11. - sequence conversion constructor has bug when first element is a sequence
  12. - assignment sequence conversion has bug in base class */
  13. template <typename T>
  14. struct skip_issues
  15. {
  16. template <typename Source, typename Expected>
  17. bool operator()(Source const& source, Expected const& expected) const
  18. {
  19. using namespace test_detail;
  20. return
  21. run< can_copy<T> >(source, expected) &&
  22. run< can_construct_from_elements<T> >(source, expected);
  23. }
  24. };
  25. int
  26. main()
  27. {
  28. test<skip_issues>();
  29. return boost::report_errors();
  30. }