MCPcopy Create free account
hub / github.com/RenderKit/embree / BasicResult

Method BasicResult

tutorials/external/catch.hpp:7107–7112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7105 public:
7106 template<typename U>
7107 explicit BasicResult( BasicResult<U> const &other )
7108 : ResultValueBase<T>( other.type() ),
7109 m_errorMessage( other.errorMessage() )
7110 {
7111 assert( type() != ResultBase::Ok );
7112 }
7113
7114 template<typename U>
7115 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }

Callers

nothing calls this directly

Calls 3

errorMessageMethod · 0.80
typeFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected