From 4feb2dbb505af4a82870aec254bc68b27ad35701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 6 Feb 2017 20:39:18 +0100 Subject: [PATCH] Removed const qualification to disambiguate between operator overloads --- include/internal/catch_expression_lhs.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/internal/catch_expression_lhs.hpp b/include/internal/catch_expression_lhs.hpp index 5807aca9..528796cf 100644 --- a/include/internal/catch_expression_lhs.hpp +++ b/include/internal/catch_expression_lhs.hpp @@ -29,45 +29,45 @@ public: template BinaryExpression - operator == ( RhsT const& rhs ) const { + operator == ( RhsT const& rhs ) { return captureExpression( rhs ); } template BinaryExpression - operator != ( RhsT const& rhs ) const { + operator != ( RhsT const& rhs ) { return captureExpression( rhs ); } template BinaryExpression - operator < ( RhsT const& rhs ) const { + operator < ( RhsT const& rhs ) { return captureExpression( rhs ); } template BinaryExpression - operator > ( RhsT const& rhs ) const { + operator > ( RhsT const& rhs ) { return captureExpression( rhs ); } template BinaryExpression - operator <= ( RhsT const& rhs ) const { + operator <= ( RhsT const& rhs ) { return captureExpression( rhs ); } template BinaryExpression - operator >= ( RhsT const& rhs ) const { + operator >= ( RhsT const& rhs ) { return captureExpression( rhs ); } - BinaryExpression operator == ( bool rhs ) const { + BinaryExpression operator == ( bool rhs ) { return captureExpression( rhs ); } - BinaryExpression operator != ( bool rhs ) const { + BinaryExpression operator != ( bool rhs ) { return captureExpression( rhs ); }