From 77d3cb35185d7e5b43056520e177c6bc740ee2d7 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 22 Feb 2014 22:35:32 +0400 Subject: [PATCH] StaticArray<> boolean specialization shouldn't have ValueType, so it was removed --- libuavcan/include/uavcan/internal/marshalling/static_array.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libuavcan/include/uavcan/internal/marshalling/static_array.hpp b/libuavcan/include/uavcan/internal/marshalling/static_array.hpp index a1043b8e9a..1bc405ef76 100644 --- a/libuavcan/include/uavcan/internal/marshalling/static_array.hpp +++ b/libuavcan/include/uavcan/internal/marshalling/static_array.hpp @@ -126,7 +126,6 @@ public: enum { Size = Size_ }; typedef IntegerSpec<1, SignednessUnsigned, CastMode> RawValueType; - typedef typename StorageType::Type ValueType; static int encode(const StaticArray& array, ScalarCodec& codec) { @@ -143,7 +142,7 @@ public: { for (std::size_t i = 0; i < Size; i++) { - ValueType value = 0; + typename StorageType::Type value = 0; const int res = RawValueType::decode(value, codec); array[i] = value; if (res <= 0)