registry/storage: minor changes

This commit is contained in:
Michele Caini
2022-06-01 09:41:41 +02:00
parent 1c8a296f49
commit d2f4ffc433
2 changed files with 3 additions and 4 deletions

View File

@@ -53,12 +53,12 @@ public:
constexpr storage_proxy_iterator() noexcept
: it{} {}
constexpr storage_proxy_iterator(const It iter) noexcept
constexpr storage_proxy_iterator(It iter) noexcept
: it{iter} {}
template<typename Other, typename = std::enable_if_t<!std::is_same_v<It, Other> && std::is_constructible_v<It, Other>>>
constexpr storage_proxy_iterator(const storage_proxy_iterator<Other> &other) noexcept
: it{other.it} {}
: storage_proxy_iterator{other.it} {}
constexpr storage_proxy_iterator &operator++() noexcept {
return ++it, *this;

View File

@@ -56,8 +56,7 @@ public:
template<bool Const = std::is_const_v<Container>, typename = std::enable_if_t<Const>>
constexpr storage_iterator(const storage_iterator<std::remove_const_t<Container>> &other) noexcept
: packed{other.packed},
offset{other.offset} {}
: storage_iterator{other.packed, other.offset} {}
constexpr storage_iterator &operator++() noexcept {
return --offset, *this;