Using assert in Vector constructor
This commit is contained in:
@@ -17,9 +17,7 @@ class BoolVector {
|
|||||||
}
|
}
|
||||||
BoolVector(STORAGE val): _value(val) {
|
BoolVector(STORAGE val): _value(val) {
|
||||||
static_assert(not std::numeric_limits<STORAGE>::is_signed);
|
static_assert(not std::numeric_limits<STORAGE>::is_signed);
|
||||||
if ( val > 1ll << SIZE) {
|
assert(val < 1ll << SIZE);
|
||||||
std::cout << "here " << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BoolVector operator*(BoolVector other) const {
|
BoolVector operator*(BoolVector other) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user