Innokentiy Alaytsev пре 6 година
родитељ
комит
c37a50d3b8
2 измењених фајлова са 3 додато и 6 уклоњено
  1. 1 0
      TODO
  2. 2 6
      docs/md/faq.md

+ 1 - 0
TODO

@@ -34,3 +34,4 @@
 * registry::each to iterate all components of an entity
 * named types: almost-stable index optimization for direct access to pools, no more linear searches
   - can implicitly generate types for meta benefit from a similar approach?
+* detect family on a macro based model

+ 2 - 6
docs/md/faq.md

@@ -127,13 +127,9 @@ here is a workaround in the form of a macro:
 
 ```cpp
 #if defined(_MSC_VER)
-    #define HS(str)\
-        __pragma(warning(push))\
-        __pragma(warning(disable:4307))\
-        entt::hashed_string{str}\
-        __pragma(warning(pop))
+#define HS(str) __pragma(warning(suppress:4307)) entt::hashed_string{str}\
 #else
-    #define HS(str) entt::hashed_string{str}
+#define HS(str) entt::hashed_string{str}
 #endif
 ```