diff options
| author | Martin Hořeňovský | 2020-04-21 19:27:12 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-03 07:52:47 +0200 |
| commit | 5b8cccaf6a9f16267ac61449a65b2df77d82d886 (patch) | |
| tree | cced5d90376edda2b85fbb9119cb08ca725d82ca /src/catch2 | |
| parent | 4aefbbcd028a23ec4c111e990cbdb32a88e8bea5 (diff) | |
| download | catch3-5b8cccaf6a9f16267ac61449a65b2df77d82d886.tar.gz | |
Add support for bitwise xor to the decomposer
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_decomposer.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_decomposer.hpp b/src/catch2/internal/catch_decomposer.hpp index 814824c6..260a3f78 100644 --- a/src/catch2/internal/catch_decomposer.hpp +++ b/src/catch2/internal/catch_decomposer.hpp @@ -216,6 +216,10 @@ namespace Catch { auto operator & (RhsT const& rhs) -> BinaryExpr<LhsT, RhsT const&> const { return { static_cast<bool>(m_lhs & rhs), m_lhs, "&", rhs }; } + template <typename RhsT> + auto operator ^ (RhsT const& rhs) -> BinaryExpr<LhsT, RhsT const&> const { + return { static_cast<bool>(m_lhs ^ rhs), m_lhs, "^", rhs }; + } template<typename RhsT> auto operator && ( RhsT const& ) -> BinaryExpr<LhsT, RhsT const&> const { |