Archived
This forum has been archived. Please start a new discussion on GitHub.
recommand IceUtil::Exception commpatible STL !
more time, we program like bellow:
try {
o->Func();
} catch( const std::exception & e ) {
// do something ...
}
I must write additional code for IceUtil::Exception,
It feel not good.
try {
o->Func();
} catch( IceUtil::Exception & e ) {
// :-(
} catch( const std::exception & e ) {
// do something ...
}
Can IceUtil::Exception derived by std::exception?
Thanks.
try {
o->Func();
} catch( const std::exception & e ) {
// do something ...
}
I must write additional code for IceUtil::Exception,
It feel not good.
try {
o->Func();
} catch( IceUtil::Exception & e ) {
// :-(
} catch( const std::exception & e ) {
// do something ...
}
Can IceUtil::Exception derived by std::exception?
Thanks.
0
Comments
-
Off the top of my head, I can't think of any reason why we should not do this. We will discuss this internally.0