Unable to compile a function template after a struct definition. The code passed compilation with multiple different versions of the compilers on Compiler Explorer, but fails in Arduino IDE. $ arduino ...
Compiler says "error: 'mytype1' does not name a type" (the same thing happens when using typedef too). There is walkaround to make these work: place user defined types and functions, that used these ...