I would like to make assumptions about the representation of floating points, and I would like to verify at compile time using a static_assert
whether the floating point representations are IEEE-754 since I transfer them through the network.
How could I make sure using a static_assert
that the float
and double
types are in the format specified in IEEE-754?