From 9fe6f7a6ea8d77fd5bca35c4f992469f98e79d2b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 29 Mar 2022 16:25:53 +0200 Subject: [PATCH] entity: avoid using =default to avoid tricking VS toolset v141 --- src/entt/entity/registry.hpp | 3 ++- src/entt/entity/runtime_view.hpp | 6 +++++- src/entt/entity/sparse_set.hpp | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index aa3aa3953..64a8f96f0 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -51,7 +51,8 @@ public: using difference_type = std::ptrdiff_t; using iterator_category = std::input_iterator_tag; - storage_proxy_iterator() ENTT_NOEXCEPT = default; + storage_proxy_iterator() ENTT_NOEXCEPT + : it{} {} storage_proxy_iterator(const It iter) ENTT_NOEXCEPT : it{iter} {} diff --git a/src/entt/entity/runtime_view.hpp b/src/entt/entity/runtime_view.hpp index 715db620b..79a7a757c 100644 --- a/src/entt/entity/runtime_view.hpp +++ b/src/entt/entity/runtime_view.hpp @@ -37,7 +37,11 @@ public: using reference = typename iterator_type::reference; using iterator_category = std::bidirectional_iterator_tag; - runtime_view_iterator() ENTT_NOEXCEPT = default; + runtime_view_iterator() ENTT_NOEXCEPT + : pools{}, + filter{}, + it{}, + tombstone_check{} {} runtime_view_iterator(const std::vector &cpools, const std::vector &ignore, iterator_type curr) ENTT_NOEXCEPT : pools{&cpools}, diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index 06c60adad..8aaf64642 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -32,7 +32,9 @@ struct sparse_set_iterator final { using difference_type = typename Container::difference_type; using iterator_category = std::random_access_iterator_tag; - sparse_set_iterator() ENTT_NOEXCEPT = default; + sparse_set_iterator() ENTT_NOEXCEPT + : packed{}, + offset{} {} sparse_set_iterator(const Container &ref, const difference_type idx) ENTT_NOEXCEPT : packed{std::addressof(ref)},