| 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 ) |
nothing calls this directly
no outgoing calls
no test coverage detected