* fixed init list order to suppress a warning
* try to please gcc that fails to compile valid code
This commit is contained in:
Michele Caini
2021-11-29 14:45:54 +01:00
parent 052aecf533
commit 80d08d5a34

View File

@@ -28,7 +28,7 @@ namespace internal {
template<typename View, std::size_t... Index>
auto storage_tuple(const View &view, std::index_sequence<Index...>) {
return std::forward_as_tuple(view.storage<Index>()...);
return std::forward_as_tuple(view.template storage<Index>()...);
}
template<typename Storage>
@@ -707,16 +707,16 @@ public:
/*! @brief Default constructor to use to create empty, invalid views. */
basic_view() ENTT_NOEXCEPT
: view{},
filter{} {}
: filter{},
view{} {}
/**
* @brief Constructs a single-type view from a storage class.
* @param ref The storage for the type to iterate.
*/
basic_view(storage_type &ref) ENTT_NOEXCEPT
: view{&ref},
filter{} {}
: filter{},
view{&ref} {}
/**
* @brief Returns the leading storage of a view.