pair_container.hpp 735 B

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Copyright (c) 2014 Kohei Takahashi
  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/core/ignore_unused.hpp>
  7. #include <boost/fusion/support/pair.hpp>
  8. using namespace boost::fusion;
  9. template <typename C>
  10. void copy()
  11. {
  12. pair<int, C> src;
  13. pair<int, C> dest = src;
  14. boost::ignore_unused(dest);
  15. }
  16. void test()
  17. {
  18. copy<FUSION_SEQUENCE<> >();
  19. copy<FUSION_SEQUENCE<TEST_TYPE> >();
  20. copy<FUSION_SEQUENCE<TEST_TYPE, TEST_TYPE> >();
  21. }