commit a24aebfd962068fbb49ea8be4bbdb7d8ce73a736 parent c9b9970892b5eb65678a8ff6da1e61453b72eabc Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Dec 4 00:41:39 +0200 STATIC_ASSERT Diffstat:
hashtable.h | | | 2 | +- |
diff --git a/hashtable.h b/hashtable.h @@ -6,7 +6,7 @@ template< size_t N > class HashTable { // https://fgiesen.wordpress.com/2015/02/22/triangular-numbers-mod-2n/ - static_assert( is_power_of_2( N ) ); + STATIC_ASSERT( is_power_of_2( N ) ); public: HashTable() {