diff --git a/include/internal/catch_result_builder.h b/include/internal/catch_result_builder.h index 1060195e..1c4e4fdb 100644 --- a/include/internal/catch_result_builder.h +++ b/include/internal/catch_result_builder.h @@ -79,9 +79,15 @@ namespace Catch { ResultBuilder& setResultType( ResultWas::OfType result ); ResultBuilder& setResultType( bool result ); template - ResultBuilder& setLhs( T const& lhs ); + ResultBuilder& setLhs( T const& lhs ) { + m_exprComponents.lhs = new AnyTypeHolder( lhs ); + return *this; + } template - ResultBuilder& setRhs( T const& rhs ); + ResultBuilder& setRhs( T const& rhs ) { + m_exprComponents.rhs = new AnyTypeHolder( rhs ); + return *this; + } ResultBuilder& setOp( std::string const& op ); void endExpression(); diff --git a/include/internal/catch_result_builder.hpp b/include/internal/catch_result_builder.hpp index 570a3265..50d43cb1 100644 --- a/include/internal/catch_result_builder.hpp +++ b/include/internal/catch_result_builder.hpp @@ -41,16 +41,6 @@ namespace Catch { m_data.resultType = result ? ResultWas::Ok : ResultWas::ExpressionFailed; return *this; } - template - ResultBuilder& ResultBuilder::setLhs( T const& lhs ) { - m_exprComponents.lhs = new AnyTypeHolder( lhs ); - return *this; - } - template - ResultBuilder& ResultBuilder::setRhs( T const& rhs ) { - m_exprComponents.rhs = new AnyTypeHolder( rhs ); - return *this; - } ResultBuilder& ResultBuilder::setOp( std::string const& op ) { m_exprComponents.op = op; return *this;