Commit e8f5ec99 authored by Dominik Charousset's avatar Dominik Charousset

Fix stream<T>::operator==

parent 6f9cf134
...@@ -84,6 +84,12 @@ private: ...@@ -84,6 +84,12 @@ private:
stream_handler_ptr ptr_; stream_handler_ptr ptr_;
}; };
/// @relates stream
template <class T>
inline bool operator==(const stream<T>& x, const stream<T>& y) {
return x.id() == y.id();
}
/// @relates stream /// @relates stream
constexpr invalid_stream_t invalid_stream = invalid_stream_t{}; constexpr invalid_stream_t invalid_stream = invalid_stream_t{};
......
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