0

bit operations - not for float,

union - reading an inactive member in a constant context is not allowed

constexpr auto Serialize(float x)
{
    // ?
}
int main()
{
    constexpr float a = 1.33;
    constexpr std::array<uint8_t, sizeof(float)> buffer = Serialize(a);
    return 0;
}

0 Answers0