Just playing around a little with C++. What I really want to do is to be able to setup a function with default values defined for an array or pointer argument. To keep thing
"abc"
is an expression, {'a', 'b', 'c'}
is a static initializer. The later is only allowed in variable declarations. For reasons unknown to me argument with default value has different grammar rule that does not allow static initializers.
There are some significant changes to when static initializers are allowed in C++0x, but I am not sure how it affect the case in question.