I could use a define macro to do what I want to achieve. But I'm sure there is a better way with C++14.
Basically I would like to instantiate a std::array of objets in the header of a class without defining by hand each instance.
const std::array<property<uint16_t>, 16> cmd_eng1 =
{{
{PROG_MEM_ENG1, 0},
{PROG_MEM_ENG1+2, 0},
...
{PROG_MEM_ENG1+30, 0}
}};
and if you wonder, below is the property class constructor (template not shown).
property(uint8_t addr, uint8_t bit_offset)
So is there a way (other than a macro) to define this array without writing everything by hand?