handle: get around an issue of VS, toolkit v141

This commit is contained in:
Michele Caini
2020-11-03 00:45:24 +01:00
parent 8cd1ce97f7
commit b8b2c4ee73

View File

@@ -63,7 +63,7 @@ struct basic_handle {
* entity.
*/
template<typename Other, typename... Args>
[[nodiscard]] operator basic_handle<Other, Args...>() const ENTT_NOEXCEPT {
operator basic_handle<Other, Args...>() const ENTT_NOEXCEPT {
static_assert(
(std::is_same_v<Other, Entity> || std::is_same_v<std::remove_const_t<Other>, Entity>)
&& (sizeof...(Type) == 0 || ((sizeof...(Args) != 0 && sizeof...(Args) <= sizeof...(Type)) && ... && (type_list_contains_v<type_list<Type...>, Args>))),