view: make toolset v141 happy again (for the last time hopefully)

This commit is contained in:
Michele Caini
2024-05-10 11:22:58 +02:00
parent 2590b6c3ba
commit 00e34a2dc7

View File

@@ -389,7 +389,8 @@ class basic_view<get_t<Get...>, exclude_t<Exclude...>>: public basic_common_view
template<typename Type>
static constexpr std::size_t index_of = type_list_index_v<std::remove_const_t<Type>, type_list<typename Get::element_type..., typename Exclude::element_type...>>;
static constexpr bool tombstone_check_required = ((sizeof...(Get) == 1u) && ... && (Get::storage_policy == deletion_policy::in_place));
// yet another workaround for an issue with the toolset v141 that doesn't accept a plain fold expression here
static constexpr bool tombstone_check_required = std::bool_constant<((sizeof...(Get) == 1u) && ... && (Get::storage_policy == deletion_policy::in_place))>::value;
template<std::size_t... Index>
auto get(const typename base_type::entity_type entt, std::index_sequence<Index...>) const noexcept {