On Sun, 2006-09-03 at 19:35 +0000, lindevel at gmx dot net wrote:
> assert_testcase.cpp: In function ‘int main()’:
> assert_testcase.cpp:16: error: ‘debug(((const char*)"Some
> string"))’ has type ‘void’ and is not a
> throw-expression 

That says to me that the expression `debug("Some string")' has a type of
void (and is not a throw expression) which is invalid for ?: if the
other type is not void.  I don't see where the problem is.  A throw
expression is valid (here by the C++ standard) even though it has a
expression type of void.

-- Pinski

Reply via email to