OpenTTD/src/core
Peter Nelson 0340e19e04
Codechange: Add to_underlying() to convert enum to underlying type. (#12958)
This simplifies and replaces static_cast and C-style casts doing the same.

`std::to_underlying()` exists in C++23 but not C++20.
2024-09-22 18:07:42 +01:00
..
alloc_func.cpp
alloc_func.hpp
alloc_type.hpp
backup_type.hpp
bitmath_func.hpp
CMakeLists.txt
container_func.hpp
endian_func.hpp
endian_type.hpp
enum_type.hpp Codechange: Add to_underlying() to convert enum to underlying type. (#12958) 2024-09-22 18:07:42 +01:00
format.hpp
geometry_func.cpp
geometry_func.hpp
geometry_type.hpp
kdtree.hpp
math_func.cpp
math_func.hpp
mem_func.hpp
multimap.hpp
overflowsafe_type.hpp
pool_func.cpp
pool_func.hpp
pool_type.hpp
random_func.cpp
random_func.hpp
smallstack_type.hpp
strong_typedef_type.hpp