meta. mark types as deprecated to simplify the cleanup

This commit is contained in:
Michele Caini
2024-10-26 19:40:35 +02:00
parent 1085023c51
commit eddb81ff9b
3 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ protected:
}
}
void prop(meta_prop_node node) {
[[deprecated("use ::custom() instead")]] void prop(meta_prop_node node) {
std::vector<meta_prop_node> *container = nullptr;
if(bucket == parent) {

View File

@@ -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;

View File

@@ -67,7 +67,7 @@ struct meta_custom_node {
std::shared_ptr<void> value{};
};
struct meta_prop_node {
struct [[deprecated("no longer required")]] meta_prop_node {
id_type id{};
meta_type_node (*type)(const meta_context &) noexcept {};
std::shared_ptr<void> value{};