meta: minor changes

This commit is contained in:
Michele Caini
2023-08-03 09:47:13 +02:00
parent 47aeeabc51
commit f65a21f88c

View File

@@ -1619,11 +1619,8 @@ class meta_sequence_container::meta_iterator final {
template<typename It>
static void basic_vtable(const void *value, const std::ptrdiff_t offset, meta_any *other) {
if(const auto &it = *static_cast<const It *>(value); other) {
other->emplace<decltype(*it)>(*it);
} else {
std::advance(const_cast<It &>(it), offset);
}
const auto &it = *static_cast<const It *>(value);
other ? other->emplace<decltype(*it)>(*it) : std::advance(const_cast<It &>(it), offset);
}
public: