From d9c4e717efd7c6b6a8d702d6eab1611be689ebfe Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Fri, 13 Dec 2019 19:06:30 +0300 Subject: [PATCH] Using assert in Vector constructor --- al_bool_matrix.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/al_bool_matrix.hpp b/al_bool_matrix.hpp index 94fcbba..84f5761 100644 --- a/al_bool_matrix.hpp +++ b/al_bool_matrix.hpp @@ -17,9 +17,7 @@ class BoolVector { } BoolVector(STORAGE val): _value(val) { static_assert(not std::numeric_limits::is_signed); - if ( val > 1ll << SIZE) { - std::cout << "here " << std::endl; - } + assert(val < 1ll << SIZE); } BoolVector operator*(BoolVector other) const {