diff --git a/libuavcan/include/uavcan/marshal/float_spec.hpp b/libuavcan/include/uavcan/marshal/float_spec.hpp index aa2604c9d5..ef3e93b884 100644 --- a/libuavcan/include/uavcan/marshal/float_spec.hpp +++ b/libuavcan/include/uavcan/marshal/float_spec.hpp @@ -50,7 +50,9 @@ class UAVCAN_EXPORT IEEE754Converter * Some compilers may have is_iec559 to be defined false despite the fact that IEEE754 is supported. * An acceptable workaround would be to put an #ifdef here. */ +#if UAVCAN_CPP_VERSION >= UAVCAN_CPP11 StaticAssert::Type>::is_iec559>::check(); +#endif } public: