Using assert in Vector constructor

This commit is contained in:
2019-12-13 19:06:30 +03:00
parent 07c4eacf1a
commit d9c4e717ef

View File

@@ -17,9 +17,7 @@ class BoolVector {
}
BoolVector(STORAGE val): _value(val) {
static_assert(not std::numeric_limits<STORAGE>::is_signed);
if ( val > 1ll << SIZE) {
std::cout << "here " << std::endl;
}
assert(val < 1ll << SIZE);
}
BoolVector operator*(BoolVector other) const {