mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix assert message
I messed up copy-paste when modifying the assert messages in last commit.
This commit is contained in:
		| @@ -67,56 +67,56 @@ namespace Catch { | ||||
|         template<typename T> | ||||
|         auto operator && ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator || ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator == ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator != ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator > ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator < ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator >= ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|  | ||||
|         template<typename T> | ||||
|         auto operator <= ( T ) const -> BinaryExpr<LhsT, RhsT const&> const { | ||||
|             static_assert(always_false<T>::value, | ||||
|             "operator|| is not supported inside assertions, " | ||||
|             "chained comparisons are not supported inside assertions, " | ||||
|             "wrap the expression inside parentheses, or decompose it"); | ||||
|         } | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský