• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #include <boost/icl/interval_set.hpp>
12 
13 template
14 <
15     template
16     <
17         class                _T,
18         template<class>class Compare  = std::less,
19         class                Interval = typename boost::icl::
20                                         interval_type_default<_T,Compare>::type,
21         template<class>class Alloc    = std::allocator
22     >
23     class IntervalSet,
24     class T
25 >
test_ttp()26 bool test_ttp()
27 {
28     typedef IntervalSet<T> IntervalSetT;
29     IntervalSetT test_set;
30     test_set.clear();
31     return true;
32 }
33 
34 
BOOST_AUTO_TEST_CASE(dummy)35 BOOST_AUTO_TEST_CASE(dummy)
36 {
37     bool result = test_ttp<boost::icl::interval_set, int>();
38     BOOST_CHECK( result );
39 }
40 
41