MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / operator=

Method operator=

tests/catch.hpp:6859–6866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6857 }
6858
6859 auto operator=( ResultValueBase const &other ) -> ResultValueBase & {
6860 if( m_type == ResultBase::Ok )
6861 m_value.~T();
6862 ResultBase::operator=(other);
6863 if( m_type == ResultBase::Ok )
6864 new( &m_value ) T( other.m_value );
6865 return *this;
6866 }
6867
6868 ~ResultValueBase() override {
6869 if( m_type == Ok )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected