StaticArray<> boolean specialization shouldn't have ValueType, so it was removed

This commit is contained in:
Pavel Kirienko
2014-02-22 22:35:32 +04:00
parent e2e4e420f1
commit 77d3cb3518
@@ -126,7 +126,6 @@ public:
enum { Size = Size_ };
typedef IntegerSpec<1, SignednessUnsigned, CastMode> RawValueType;
typedef typename StorageType<RawValueType>::Type ValueType;
static int encode(const StaticArray<RawValueType, Size>& array, ScalarCodec& codec)
{
@@ -143,7 +142,7 @@ public:
{
for (std::size_t i = 0; i < Size; i++)
{
ValueType value = 0;
typename StorageType<RawValueType>::Type value = 0;
const int res = RawValueType::decode(value, codec);
array[i] = value;
if (res <= 0)