MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / BasicResult

Method BasicResult

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5570–5573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5568public:
5569 template <typename U>
5570 explicit BasicResult(BasicResult<U> const &other)
5571 : ResultValueBase<T>(other.type()), m_errorMessage(other.errorMessage()) {
5572 assert(type() != ResultBase::Ok);
5573 }
5574
5575 template <typename U> static auto ok(U const &value) -> BasicResult {
5576 return {ResultBase::Ok, value};

Callers

nothing calls this directly

Calls 3

typeClass · 0.85
errorMessageMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected