mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 04:23:34 +08:00
StaticArray<> boolean specialization shouldn't have ValueType, so it was removed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user