any: allow for a smoother transition before deprecating ::owner

This commit is contained in:
Michele Caini
2023-08-19 16:15:38 +02:00
parent b1e47fc7d4
commit aafa8a9b0b

View File

@@ -408,7 +408,7 @@ public:
* @brief Returns true if a wrapper owns its object, false otherwise.
* @return True if the wrapper owns its object, false otherwise.
*/
[[deprecated("use policy() and any_policy instead")]] [[nodiscard]] bool owner() const noexcept {
[[nodiscard]] bool owner() const noexcept {
return (mode == any_policy::owner);
}