The check to see if an item was already on the heap was randomly hitting.
[jitcs.git] / include / jitcs_typefuncs.h
blobcbb2c7d945ab4ccb9b97bf266e84760fb1ab3abd
1 //===-- jitcs_typefuncs.h ---------------------------------------*- C++ -*-===//
2 //
3 //
4 //===----------------------------------------------------------------------===//
6 #ifndef _JITCS_TYPEFUNCS_H_
7 #define _JITCS_TYPEFUNCS_H_
9 #include "jitcs_base.h"
11 namespace jitcs {
13 template <typename T, bool C> struct ConstType;
14 template <typename T> struct ConstType<T, false> { typedef T Type; };
15 template <typename T> struct ConstType<T, true> { typedef const T Type; };
17 } // end jitcs namespace
18 #endif
19 // _JITCS_TYPEFUNCS_H_