catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix expression compile errors.
- Commit
fec10533e7d1e83649a5a2a23fa486695ec83121- Author
- Wichert Akkerman ·
- Parents
90a3594e104e
Changes
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<typename RhsT> 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<typename RhsT> ExpressionResultBuilder& operator == ( const RhsT& rhs ) {