skypjack 3 недель назад
Родитель
Сommit
18477eb65b
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      src/entt/meta/meta.hpp
  2. 1 0
      src/entt/stl/iterator.hpp

+ 1 - 1
src/entt/meta/meta.hpp

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

+ 1 - 0
src/entt/stl/iterator.hpp

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