Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 90870da

Browse files
committed
make Result members private
1 parent 88ed8c0 commit 90870da

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

include/common/result.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,8 @@ class Result {
211211
return std::move(value);
212212
}
213213

214-
/**
215-
* @brief error value
216-
* @details instead of wrapping the variant in std::optional, it's more efficient to use
217-
* std::monostate. since we have to use std::variant in any case.
218-
*/
214+
private:
215+
// instead of wrapping the variant in std::optional, we can use std::monostate
219216
std::variant<std::monostate, Errs...> error;
220217
T value;
221218
};

0 commit comments

Comments
 (0)