diff options
| author | Martin Hořeňovský | 2017-08-30 11:40:29 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-08-30 12:11:41 +0200 |
| commit | 61d2c375ddf765ee2f88f8a3b92f517ea380abb8 (patch) | |
| tree | 8e7755eba4c14729c8247d81f41295a34c46bfef /include | |
| parent | 07211cea9c5d916f590a3791e845b1c83c8db81e (diff) | |
| download | catch3-61d2c375ddf765ee2f88f8a3b92f517ea380abb8.tar.gz | |
Add evaluation specialization for T* and long
Fixes #1005
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_decomposer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/catch_decomposer.h b/include/internal/catch_decomposer.h index 8cb4c1d4..5613e774 100644 --- a/include/internal/catch_decomposer.h +++ b/include/internal/catch_decomposer.h @@ -80,14 +80,22 @@ namespace Catch { template<typename T> auto compareEqual( T* const& lhs, int rhs ) -> bool { return lhs == reinterpret_cast<void const*>( rhs ); }; template<typename T> + auto compareEqual( T* const& lhs, long rhs ) -> bool { return lhs == reinterpret_cast<void const*>( rhs ); }; + template<typename T> auto compareEqual( int lhs, T* const& rhs ) -> bool { return reinterpret_cast<void const*>( lhs ) == rhs; }; + template<typename T> + auto compareEqual( long lhs, T* const& rhs ) -> bool { return reinterpret_cast<void const*>( lhs ) == rhs; }; template<typename LhsT, typename RhsT> auto compareNotEqual( LhsT const& lhs, RhsT&& rhs ) -> bool { return const_cast<LhsT&>( lhs ) != rhs; }; template<typename T> auto compareNotEqual( T* const& lhs, int rhs ) -> bool { return lhs != reinterpret_cast<void const*>( rhs ); }; template<typename T> + auto compareNotEqual( T* const& lhs, long rhs ) -> bool { return lhs != reinterpret_cast<void const*>( rhs ); }; + template<typename T> auto compareNotEqual( int lhs, T* const& rhs ) -> bool { return reinterpret_cast<void const*>( lhs ) != rhs; }; + template<typename T> + auto compareNotEqual( long lhs, T* const& rhs ) -> bool { return reinterpret_cast<void const*>( lhs ) != rhs; }; template<typename LhsT> |