>
> but I guess that
>
> void foo() {
> return void;
> }
>
> Is still illegal, but that
Sure, because the void in 'return void' is not an expression.
void foo() {
return void();
}
on the other hand is legal, at least according to my reading of 6.6.3.
void() is an expressi
> And this isn't only for templates?
No. Everywhere.
Andre'
--
André Pönitz . [EMAIL PROTECTED]
> Compiliation of mathed dies in MathCursor because a void function returns a
> value.
>
> cxx: Error: math_cursor.C, line 1309:
> #118 a void function may not return a value
> return niceInsert(new MathFuncInset(s.substr(1)));
Ok -- my first feeling was right:
Your Comp
> Compiliation of mathed dies in MathCursor because a void function returns a
> value.
Cut&Paste error of mine. Fixed.
I am, however, not sure that this is not legal.
At least in a template context
template T bar() { return T(); }
template T foo() { return bar(); }
{ ... foo(); ... }
s