any: deprecate (again) ::owner

This commit is contained in:
Michele Caini
2023-08-30 09:58:33 +02:00
parent 7178970524
commit 36c2087269

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.
*/
[[nodiscard]] bool owner() const noexcept {
[[deprecated("use policy() and any_policy instead")]] [[nodiscard]] bool owner() const noexcept {
return (mode == any_policy::owner);
}