Click on image to see enlargment
Our programmer is attempting to catch illegal input but his report is not quite what he wanted. What's going wrong?
bug1752.cpp lint Output
--- Module: bug1752.cpp _ catch( Exception e ) bug1752.cpp(13) : Info 1752: catch parameter is not a reference --- Global Wrap-up Info 729: Symbol 'noargs' (line 6, file bug1752.cpp) not explicitly initialized
Reference Manual Explanation
1752 catch parameter is not a reference -- This message is issued for every catch parameter that is not a reference and is not numeric. The problem with pointers is a problem of ownership and delete responsibilities; the problem with a non-ref object is the problem of slicing away derivedness [23, Item 13].
If you have comments or questions about this bug, please post them to our Discussion Forum
Previous Bug - Bug #613 - July 2004