MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / BasicResult

Method BasicResult

tests/catch.hpp:6888–6893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6886 public:
6887 template<typename U>
6888 explicit BasicResult( BasicResult<U> const &other )
6889 : ResultValueBase<T>( other.type() ),
6890 m_errorMessage( other.errorMessage() )
6891 {
6892 assert( type() != ResultBase::Ok );
6893 }
6894
6895 template<typename U>
6896 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }

Callers

nothing calls this directly

Calls 2

errorMessageMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected