summaryrefslogtreecommitdiff
path: root/src/compile-time-assert.hpp
blob: bc325d7afcce90241b4c79a058bf94e18937e1fa (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef PKE_COMPILE_TIME_ASSERT_HPP
#define PKE_COMPILE_TIME_ASSERT_HPP

/* Compile-time assertion.
 * Useful for detecting changes in well-known data
 */
template <bool b> class compt_a;
template <> class compt_a<true>{static const bool value = true;};

#endif /* PKE_COMPILE_TIME_ASSERT_HPP */