meta_any: cleanup

This commit is contained in:
Michele Caini
2024-12-10 16:34:43 +01:00
parent be0d274255
commit b480d8bc14
2 changed files with 3 additions and 3 deletions
-1
View File
@@ -44,4 +44,3 @@ TODO:
* built-in no-pagination storage - no_pagination page size as limits::max
* meta_any ownership construction and from_void
* sparse_set shrink_to_fit argument for sparse array shrink policy (none, empty, deep, whatever)
* meta_any: avoid initializing members with global context an void vtable
+3 -2
View File
@@ -218,7 +218,8 @@ class meta_any {
public:
/*! Default constructor. */
meta_any() = default;
meta_any()
: meta_any{meta_ctx_arg, locator<meta_ctx>::value_or()} {}
/**
* @brief Context aware constructor.
@@ -639,7 +640,7 @@ public:
private:
any storage{};
const meta_ctx *ctx{&locator<meta_ctx>::value_or()};
const meta_ctx *ctx{};
internal::meta_type_node node{};
vtable_type *vtable{};
};