TypeTraitsTest.cpp 522 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <amdis/AMDiS.hpp>
#include <amdis/common/TypeTraits.hpp>

using namespace AMDiS;

template <std::size_t i>
struct A {};

template <class T>
struct B {};

template <class T, std::size_t i>
struct C {};


struct D {};


int main(int argc, char** argv)
{
  Environment env(argc, argv);

  static_assert(is_template<A>(), "");
  static_assert(is_template<B>(), "");
  static_assert(is_template<C>(), "");

  static_assert(not is_template<std::size_t>(), "");
  static_assert(not is_template<D>(), "");

  return 0;
}