Skip to content

Commit ebe360d

Browse files
authored
fix: do not use c++20 char8_t keyword (#3629)
fix: do not use c++20 keyword as a type alias Signed-off-by: Grzegorz Głowacki <gglowacki@autonomous-systems.pl>
1 parent 76de4dd commit ebe360d

File tree

1 file changed

+2
-0
lines changed
  • common/autoware_auto_common/include/autoware_auto_common/common

1 file changed

+2
-0
lines changed

common/autoware_auto_common/include/autoware_auto_common/common/types.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ namespace types
3737
// We don't currently require code to comply to MISRA, but we should try to where it is
3838
// easily possible.
3939
using bool8_t = bool;
40+
#if __cplusplus < 201811L || !__cpp_char8_t
4041
using char8_t = char;
42+
#endif
4143
using uchar8_t = unsigned char;
4244
// If we ever compile on a platform where this is not true, float32_t and float64_t definitions
4345
// need to be adjusted.

0 commit comments

Comments
 (0)