Fix the failing test case for the Result Type

This commit is contained in:
Sameer Rahmani 2021-04-14 18:14:39 +01:00
parent 3223fc6944
commit c737af51a4
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ function memcheck() {
}
function run-tests() {
$BUILD_DIR/tests/tests
$BUILD_DIR/src/tests/tests
}
function tests() {

View File

@ -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(); }
};