mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-02 06:53:28 +00:00
Type punning like this isn't actually well-defined behavior. Only casting to char/unsigned char is well defined. This presents a problem when using FourCC instances in constexpr contexts, given constexpr contexts are forbidden from having undefined behavior in them. Because of that, any attempt to use the const char* constructor within a constexpr context would always result in a compilation error.
Description
Data interchange, editor suite, and runtime re-implementations for games by Retro Studios
Languages
C++
94.2%
C
4.5%
CMake
1.2%