From fec10533e7d1e83649a5a2a23fa486695ec83121 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Fri, 16 Nov 2012 10:47:33 +0100 Subject: [PATCH] Fix expression compile errors. --- include/internal/catch_expression_lhs.hpp | 2 +- single_include/catch.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_expression_lhs.hpp b/include/internal/catch_expression_lhs.hpp index 7ee8b2ef..edc5dd84 100644 --- a/include/internal/catch_expression_lhs.hpp +++ b/include/internal/catch_expression_lhs.hpp @@ -22,7 +22,7 @@ class ExpressionLhs { void operator = ( const ExpressionLhs& ); public: - ExpressionLhs( const T& lhs ) : m_lhs( lhs ) {} + ExpressionLhs( T lhs ) : m_lhs( lhs ) {} template ExpressionResultBuilder& operator == ( const RhsT& rhs ) { diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 16894691..dbca2e61 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -938,7 +938,7 @@ class ExpressionLhs { void operator = ( const ExpressionLhs& ); public: - ExpressionLhs( const T& lhs ) : m_lhs( lhs ) {} + ExpressionLhs( T lhs ) : m_lhs( lhs ) {} template ExpressionResultBuilder& operator == ( const RhsT& rhs ) {