Fix the failing test case for the Result Type
This commit is contained in:
parent
3223fc6944
commit
c737af51a4
2
builder
2
builder
|
@ -72,7 +72,7 @@ function memcheck() {
|
|||
}
|
||||
|
||||
function run-tests() {
|
||||
$BUILD_DIR/tests/tests
|
||||
$BUILD_DIR/src/tests/tests
|
||||
}
|
||||
|
||||
function tests() {
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
|
||||
/// Return the a boolean value indicating whether the value is succesful
|
||||
/// or errorful.
|
||||
bool ok() const { return std::holds_alternative<1>(contents); };
|
||||
bool ok() const { return std::holds_alternative<T>(contents); };
|
||||
|
||||
operator bool() const { return ok(); }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue