diff options
Diffstat (limited to 'src/compile-time-assert.hpp')
| -rw-r--r-- | src/compile-time-assert.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compile-time-assert.hpp b/src/compile-time-assert.hpp new file mode 100644 index 0000000..bc325d7 --- /dev/null +++ b/src/compile-time-assert.hpp @@ -0,0 +1,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 */ |
