I am getting compiler errors when trying to compile code with a C++11 enum class. At first I assumed this was because the -std=c++11 flag was not being passed into the compiler, so I tried adding it to the cxxflags in mos.yml, but no luck with that either.
The code which throws the error is:
enum class interrupt_e
{
Global,
Radio
};
I am building locally with the following command
mos build --verbose --local
In the mos.yml file I have added this, but without any change to the compilation result
cxxflags:
- "-std=c++11"
The errors the compiler throws are
14:1: error: expected identifier before 'enum'
enum class interrupt_e
^~~~
18:1: error: multiple types in one declaration
};
^