Originally posted by: you2
Then what datatype does :
try {
..
..
.
} catch (a()) {
...
}
catch ?
Originally posted by: you2
Actually it does. This is legal code it compiles. A coworker figured out what it is catching - it is catching a pointer to a function that returns type a (ala
a x() {return a()};
try {
throw &x
} catch (a() ) {
...
}
---
Yea I know the answer now but not when i asked the question.
Originally posted by: you2
Actually it does. This is legal code it compiles. A coworker figured out what it is catching - it is catching a pointer to a function that returns type a (ala
a x() {return a()};
try {
throw &x
} catch (a() ) {
...
}
---
Yea I know the answer now but not when i asked the question.