Is it ok to use initialization like this?
class Foo
{
public:
Foo() : str("str") {}
char str[4];
};
And this?
int main()
{
char str[4]("str");
}
Both give me an error in gcc 4.7.2:
error: array used as initializer
Comeau compiles both.