13 Sep
2004
13 Sep
'04
21:05
This compiles and works under gcc 3.3.3, but I suspect it's not legal because I'm giving a default argument to a pointer to a function. Can anyone tell me if I'm right or wrong? #include<iostream> double function( double x, double y = 0 ){ return x * (x + y); } int main() { double (*function)( double, double = 0 ) = ::function; std::cout << function( 4 ) << std::endl; exit( 0 ); } -- JDL