meta: cleanup

This commit is contained in:
Michele Caini
2020-07-25 23:35:52 +02:00
parent fc8e8874a9
commit a06c9f890c
2 changed files with 1 additions and 6 deletions

1
TODO
View File

@@ -25,6 +25,5 @@ Next:
- custom pools.
- the Perfect Model.
- page size 0 -> page less mode
- test meta_associative_container::meta_iterator::value fro non-key-only, const value
- add ::reach and rev iterators to views and groups for raw, faster and unsafe iterations
- add example: 64 bit ids with 32 bits reserved for users' purposes

View File

@@ -1695,11 +1695,7 @@ class meta_associative_container::meta_iterator {
if constexpr(KeyOnly) {
return meta_any{};
} else {
if constexpr(std::is_const_v<std::remove_reference_t<decltype(std::declval<It>()->second)>>) {
return any.cast<It>()->second;
} else {
return std::ref(any.cast<It>()->second);
}
return std::ref(any.cast<It>()->second);
}
}