Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537)

Build all
This commit is contained in:
ocornut
2022-01-17 11:53:03 +01:00
parent f84c93d834
commit eb823655af
4 changed files with 4 additions and 19 deletions

View File

@ -203,11 +203,7 @@ namespace ImStb
#define IMGUI_DEBUG_LOG_NAV(...) ((void)0) // Disable log
// Static Asserts
#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100)
#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "")
#else
#define IM_STATIC_ASSERT(_COND) typedef char static_assertion_##__line__[(_COND)?1:-1]
#endif
// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much.
// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code.