Browse Source

storage: workaround for an issue of vs2017

Michele Caini 5 years ago
parent
commit
8b0a7c302b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/entt/entity/storage.hpp

+ 2 - 1
src/entt/entity/storage.hpp

@@ -477,7 +477,8 @@ private:
 
 
 /*! @copydoc storage */
 /*! @copydoc storage */
 template<typename Entity, typename Type>
 template<typename Entity, typename Type>
-class storage<Entity, Type, std::enable_if_t<ENTT_IS_EMPTY(Type)>>: public sparse_set<Entity> {
+// the useless decltype(...) helps to get around a quite impressive issue of VS2017
+class storage<Entity, Type, decltype(std::enable_if_t<ENTT_IS_EMPTY(Type)>())>: public sparse_set<Entity> {
     using underlying_type = sparse_set<Entity>;
     using underlying_type = sparse_set<Entity>;
 
 
 public:
 public: