Runtime_error class with LINUX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bmsce engg
    New Member
    • Jun 2011
    • 8

    Runtime_error class with LINUX

    I have a c++ application running on Linux platform. As part of exception handling, I wanted to derive my user defined exception class from standard runtime_error class.

    Are there any known issues/problems between linux OS and runtime_error class? This might sound a little weird but I have seen people avoiding runtime_error class on linux:

    #ifdef HPUX
    class myException : public std::runtime_er ror
    #endif
    #ifdef LINUX
    class myExcpetion
    #endif
    { // class definition starts here


    Any thoughts would be highly appreciated....
    Thanks.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    I am not aware of any issues with deriving from std::runtime_er ror and have been doing so (on Linux and Windows) for the last 2 years.

    Comment

    Working...