MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / BasicResult

Method BasicResult

extlibs/catch/include/catch/catch.hpp:8682–8687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8680 public:
8681 template<typename U>
8682 explicit BasicResult( BasicResult<U> const &other )
8683 : ResultValueBase<T>( other.type() ),
8684 m_errorMessage( other.errorMessage() )
8685 {
8686 assert( type() != ResultBase::Ok );
8687 }
8688
8689 template<typename U>
8690 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }

Callers

nothing calls this directly

Calls 3

errorMessageMethod · 0.80
typeClass · 0.70
typeMethod · 0.45

Tested by

no test coverage detected