stl: std::advance

This commit is contained in:
skypjack
2026-04-20 18:33:30 +02:00
parent 8a1940c0fa
commit 18477eb65b
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -8,6 +8,7 @@
/*! @cond ENTT_INTERNAL */
namespace entt::stl {
using std::advance;
using std::bidirectional_iterator_tag;
using std::distance;
using std::forward_iterator_tag;