diff --git a/med/field.hpp b/med/field.hpp index 017e0cb..e65fe3a 100644 --- a/med/field.hpp +++ b/med/field.hpp @@ -239,10 +239,10 @@ class multi_field : public detail::define_meta_info return &m_tail->value; } - field_value m_fields[inplace]; - std::size_t m_count {0}; field_value* m_head {nullptr}; field_value* m_tail {nullptr}; + std::size_t m_count {0}; + field_value m_fields[inplace]; }; } //end: namespace med diff --git a/med/octet_string.hpp b/med/octet_string.hpp index 01e4100..f78747a 100644 --- a/med/octet_string.hpp +++ b/med/octet_string.hpp @@ -99,9 +99,9 @@ class octets_var_intern } private: - uint8_t m_data[MAX_LEN]; num_octs_t m_size {0}; bool m_is_set {false}; + uint8_t m_data[MAX_LEN]; }; //fixed length octets with external storage