|
|
@@ -765,7 +765,7 @@ private:
|
|
|
};
|
|
|
|
|
|
/*! @brief Opaque wrapper for properties of any type. */
|
|
|
-struct meta_prop {
|
|
|
+struct [[deprecated("use meta_custom instead")]] meta_prop {
|
|
|
/*! @brief Default constructor. */
|
|
|
meta_prop() noexcept = default;
|
|
|
|
|
|
@@ -938,7 +938,7 @@ struct meta_data {
|
|
|
* @brief Returns a range to visit registered meta properties.
|
|
|
* @return An iterable range to visit registered meta properties.
|
|
|
*/
|
|
|
- [[nodiscard]] meta_range<meta_prop, typename decltype(internal::meta_data_node::prop)::const_iterator> prop() const noexcept {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_range<meta_prop, typename decltype(internal::meta_data_node::prop)::const_iterator> prop() const noexcept {
|
|
|
return {{*ctx, node->prop.cbegin()}, {*ctx, node->prop.cend()}};
|
|
|
}
|
|
|
|
|
|
@@ -947,7 +947,7 @@ struct meta_data {
|
|
|
* @param key The key to use to search for a property.
|
|
|
* @return The registered meta property for the given key, if any.
|
|
|
*/
|
|
|
- [[nodiscard]] meta_prop prop(const id_type key) const {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_prop prop(const id_type key) const {
|
|
|
for(auto &&elem: node->prop) {
|
|
|
if(elem.id == key) {
|
|
|
return meta_prop{*ctx, elem};
|
|
|
@@ -1083,7 +1083,7 @@ struct meta_func {
|
|
|
}
|
|
|
|
|
|
/*! @copydoc meta_data::prop */
|
|
|
- [[nodiscard]] meta_range<meta_prop, typename decltype(internal::meta_func_node::prop)::const_iterator> prop() const noexcept {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_range<meta_prop, typename decltype(internal::meta_func_node::prop)::const_iterator> prop() const noexcept {
|
|
|
return {{*ctx, node->prop.cbegin()}, {*ctx, node->prop.cend()}};
|
|
|
}
|
|
|
|
|
|
@@ -1092,7 +1092,7 @@ struct meta_func {
|
|
|
* @param key The key to use to search for a property.
|
|
|
* @return The registered meta property for the given key, if any.
|
|
|
*/
|
|
|
- [[nodiscard]] meta_prop prop(const id_type key) const {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_prop prop(const id_type key) const {
|
|
|
for(auto &&elem: node->prop) {
|
|
|
if(elem.id == key) {
|
|
|
return meta_prop{*ctx, elem};
|
|
|
@@ -1562,7 +1562,7 @@ public:
|
|
|
* @brief Returns a range to visit registered top-level meta properties.
|
|
|
* @return An iterable range to visit registered top-level meta properties.
|
|
|
*/
|
|
|
- [[nodiscard]] meta_range<meta_prop, typename decltype(internal::meta_type_descriptor::prop)::const_iterator> prop() const noexcept {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_range<meta_prop, typename decltype(internal::meta_type_descriptor::prop)::const_iterator> prop() const noexcept {
|
|
|
using range_type = meta_range<meta_prop, typename decltype(internal::meta_type_descriptor::prop)::const_iterator>;
|
|
|
return node.details ? range_type{{*ctx, node.details->prop.cbegin()}, {*ctx, node.details->prop.cend()}} : range_type{};
|
|
|
}
|
|
|
@@ -1572,7 +1572,7 @@ public:
|
|
|
* @param key The key to use to search for a property.
|
|
|
* @return The registered meta property for the given key, if any.
|
|
|
*/
|
|
|
- [[nodiscard]] meta_prop prop(const id_type key) const {
|
|
|
+ [[nodiscard]] [[deprecated("use ::custom() instead")]] meta_prop prop(const id_type key) const {
|
|
|
const auto *elem = internal::look_for<&internal::meta_type_descriptor::prop>(internal::meta_context::from(*ctx), node, key);
|
|
|
return elem ? meta_prop{*ctx, *elem} : meta_prop{};
|
|
|
}
|