Skip to content

Commit

Permalink
use feature test macro to detect char8_t support
Browse files Browse the repository at this point in the history
allows compilation in c++20 mode when using /Zc:char8_t- or -fno-char8_t compiler flags
  • Loading branch information
justusranvier authored and martinus committed Aug 27, 2023
1 parent a570a0e commit 202db83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ ANKERL_UNORDERED_DENSE_HASH_STATICCAST(bool);
ANKERL_UNORDERED_DENSE_HASH_STATICCAST(char);
ANKERL_UNORDERED_DENSE_HASH_STATICCAST(signed char);
ANKERL_UNORDERED_DENSE_HASH_STATICCAST(unsigned char);
# if ANKERL_UNORDERED_DENSE_CPP_VERSION >= 202002L
# if ANKERL_UNORDERED_DENSE_CPP_VERSION >= 202002L && defined(__cpp_char8_t)
ANKERL_UNORDERED_DENSE_HASH_STATICCAST(char8_t);
# endif
ANKERL_UNORDERED_DENSE_HASH_STATICCAST(char16_t);
Expand Down

0 comments on commit 202db83

Please sign in to comment.