From a58e8842e21f7256b6a472a04f5bd8302328a6b7 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 22 Feb 2014 15:25:52 +0400 Subject: [PATCH] FloatSpec made unconstructible --- libuavcan/include/uavcan/internal/marshalling/float_spec.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libuavcan/include/uavcan/internal/marshalling/float_spec.hpp b/libuavcan/include/uavcan/internal/marshalling/float_spec.hpp index b265f59923..cdda4ff843 100644 --- a/libuavcan/include/uavcan/internal/marshalling/float_spec.hpp +++ b/libuavcan/include/uavcan/internal/marshalling/float_spec.hpp @@ -31,6 +31,8 @@ class IEEE754Converter static uint16_t nativeNonIeeeToHalf(float value); static float halfToNativeNonIeee(uint16_t value); + IEEE754Converter() { } + public: /// UAVCAN requires rounding to nearest for all float conversions static std::float_round_style roundstyle() { return std::round_to_nearest; } @@ -94,6 +96,8 @@ template <> struct IEEE754Limits<64> template class FloatSpec : public IEEE754Limits { + FloatSpec() { } + public: enum { BitLen = BitLen_ };