diff --git a/include/memory b/include/memory index 189e3b90..79cfe9df 100644 --- a/include/memory +++ b/include/memory @@ -496,8 +496,8 @@ public: long use_count() const noexcept; bool expired() const noexcept; shared_ptr lock() const noexcept; - template bool owner_before(shared_ptr const& b); - template bool owner_before(weak_ptr const& b); + template bool owner_before(shared_ptr const& b) const; + template bool owner_before(weak_ptr const& b) const; }; // weak_ptr specialized algorithms: