diff --git a/libsrc/core/utils.hpp b/libsrc/core/utils.hpp index 7f38c948..e18a09f7 100644 --- a/libsrc/core/utils.hpp +++ b/libsrc/core/utils.hpp @@ -134,6 +134,9 @@ namespace ngcore private: template static constexpr auto check(T2* t) -> typename T2::index_type { return *t; } + // this function is needed for visual because it seems to not lazy evaluate template arguments... + template + static constexpr auto check(T2* t) -> typename enable_if_t> {} static constexpr auto check(...) -> decltype(std::declval().Size()) { return decltype(std::declval().Size())(); } public: