Using assert in Vector constructor
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user