You are viewing a single comment's thread. Return to all comments →
invalid _argument is a class derived from logic error then exception class... so you can write that instead:
catch (const exception& e){ cout<<e.what()<<endl; }
Seems like cookies are disabled on this browser, please enable them to open this website
Cpp exception handling
You are viewing a single comment's thread. Return to all comments →
invalid _argument is a class derived from logic error then exception class... so you can write that instead: