diff --git a/asio/include/asio/execution/any_executor.hpp b/asio/include/asio/execution/any_executor.hpp index cce16468..b5f5233f 100644 --- a/asio/include/asio/execution/any_executor.hpp +++ b/asio/include/asio/execution/any_executor.hpp @@ -1306,8 +1306,8 @@ public: template friend typename enable_if< - is_same::value - || is_same::value, + is_base_of::value + || is_base_of::value, bool >::type operator==(const AnyExecutor1& a, const AnyExecutor2& b) ASIO_NOEXCEPT @@ -1335,8 +1335,8 @@ public: template friend typename enable_if< - is_same::value - || is_same::value, + is_base_of::value + || is_base_of::value, bool >::type operator!=(const AnyExecutor1& a, const AnyExecutor2& b) ASIO_NOEXCEPT @@ -1503,8 +1503,8 @@ public: template friend typename enable_if< - is_same::value - || is_same::value, + is_base_of::value + || is_base_of::value, bool >::type operator==(const AnyExecutor1& a, const AnyExecutor2& b) ASIO_NOEXCEPT @@ -1532,8 +1532,8 @@ public: template friend typename enable_if< - is_same::value - || is_same::value, + is_base_of::value + || is_base_of::value, bool >::type operator!=(const AnyExecutor1& a, const AnyExecutor2& b) ASIO_NOEXCEPT @@ -1918,8 +1918,8 @@ inline void swap(any_executor& a, \ template \ friend typename enable_if< \ - is_same::value \ - || is_same::value, \ + is_base_of::value \ + || is_base_of::value, \ bool \ >::type operator==(const AnyExecutor1& a, \ const AnyExecutor2& b) ASIO_NOEXCEPT \ @@ -1947,8 +1947,8 @@ inline void swap(any_executor& a, \ template \ friend typename enable_if< \ - is_same::value \ - || is_same::value, \ + is_base_of::value \ + || is_base_of::value, \ bool \ >::type operator!=(const AnyExecutor1& a, \ const AnyExecutor2& b) ASIO_NOEXCEPT \