I get the error in my project but I can't reproduce it in "hello world" project to send it to you, and I don't understand why. I do exactly as you say and get two different results in two projects.
The error doesn't happen with simple types, only with custom structs/classes.
UPD: OK I made it. But I think the bug is in different place. Here's the full app:
Code:
/******************************************************************************/
<TYPE, int NUM> class FixedArrayZero : FixedArray<TYPE, NUM>
{
FixedArrayZero()
{
REPAO(T)=0;
}
}
struct _saProgressColorScheme
{
Color colorOne,
colorTwo;
_saProgressColorScheme &operator=(C Int &value) { colorOne = colorTwo = Color(value); return T; }
}
struct _saProgressColorSchemeSet
{
FixedArrayZero<_saProgressColorScheme, 6> hpStyle;
FixedArrayZero<_saProgressColorScheme, 6> mpStyle;
}
/******************************************************************************/
void InitPre() { EE_INIT(); }
bool Init() { return true; }
void Shut() {}
bool Update() { return Kb.bp(KB_ESC) ? false : true;}
void Draw() {}
/******************************************************************************/
Funny thing: error happens
only with struct name "_saProgressColorScheme". If I use other struct names, error disappears.
What is going on here?
UPD2:
When I export project with an error to Visual Studio, even if I rename the class it does no difference, error still exists. And vice versa, if I export a project with different class name, I can change it in Visual Studio to whatever, it still compiles without problems.