Add c++23 checking

This commit is contained in:
halx99 2023-01-04 23:23:33 +08:00
parent 68b42398a1
commit 51ec09efd2
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@
# define PUGI_CXX_STD 20
#endif // C++20 features check
#if (defined(_MSC_VER) && _MSC_VER > 1900 && \
((defined(_HAS_CXX23) && _HAS_CXX23 == 1)))
# ifdef PUGI_CXX_STD
# undef PUGI_CXX_STD
# endif
# define PUGI_CXX_STD 23
#endif
#if !defined(PUGI_CXX_STD)
# define PUGI_CXX_STD 11
#endif