Skip to content

Commit c2dcd72

Browse files
committed
meta: deprecate const meta_handle::operator->
1 parent 716e325 commit c2dcd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entt/meta/meta.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ class meta_handle {
746746
}
747747

748748
/*! @copydoc operator-> */
749-
[[nodiscard]] const meta_any *operator->() const {
749+
[[deprecated("do not use const handles")]] [[nodiscard]] const meta_any *operator->() const {
750750
return &any;
751751
}
752752

0 commit comments

Comments
 (0)