cmp_clang_ttp_passing2.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*-----------------------------------------------------------------------------+
  2. Copyright (c) 2011-2011: Joachim Faulhaber
  3. +------------------------------------------------------------------------------+
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENCE.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. +-----------------------------------------------------------------------------*/
  8. #define BOOST_TEST_MODULE icl::cmp_clang_ttp_passing2 unit test
  9. #include "../unit_test_unwarned.hpp"
  10. #include <boost/icl/interval_set.hpp>
  11. template
  12. <
  13. template
  14. <
  15. class _T,
  16. template<class>class Compare = std::less,
  17. class Interval = typename boost::icl::
  18. interval_type_default<_T,Compare>::type,
  19. template<class>class Alloc = std::allocator
  20. >
  21. class IntervalSet,
  22. class T
  23. >
  24. bool test_ttp()
  25. {
  26. typedef IntervalSet<T> IntervalSetT;
  27. IntervalSetT test_set;
  28. test_set.clear();
  29. return true;
  30. }
  31. BOOST_AUTO_TEST_CASE(dummy)
  32. {
  33. bool result = test_ttp<boost::icl::interval_set, int>();
  34. BOOST_CHECK( result );
  35. }