Commit f934f7a9 authored by Paul's avatar Paul
Browse files

Use and instead

parent a740f253
...@@ -101,8 +101,7 @@ struct raw_data : raw_data_base ...@@ -101,8 +101,7 @@ struct raw_data : raw_data_base
template <class T, template <class T,
class U, class U,
RTG_REQUIRES(std::is_base_of<raw_data_base, T>{}), RTG_REQUIRES(std::is_base_of<raw_data_base, T>{} && std::is_base_of<raw_data_base, U>{})>
RTG_REQUIRES(std::is_base_of<raw_data_base, U>{})>
bool operator==(const T& x, const U& y) bool operator==(const T& x, const U& y)
{ {
auto&& xshape = x.get_shape(); auto&& xshape = x.get_shape();
...@@ -124,8 +123,7 @@ bool operator==(const T& x, const U& y) ...@@ -124,8 +123,7 @@ bool operator==(const T& x, const U& y)
template <class T, template <class T,
class U, class U,
RTG_REQUIRES(std::is_base_of<raw_data_base, T>{}), RTG_REQUIRES(std::is_base_of<raw_data_base, T>{} && std::is_base_of<raw_data_base, U>{})>
RTG_REQUIRES(std::is_base_of<raw_data_base, U>{})>
bool operator!=(const T& x, const U& y) bool operator!=(const T& x, const U& y)
{ {
return !(x == y); return !(x == y);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment