File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ namespace pfasst
2929 class NotImplementedYet
3030 : public runtime_error
3131 {
32- protected:
33- string msg;
34-
3532 public:
3633 /* *
3734 * @param[in] msg component or algorithm the throwing function is required for
@@ -53,9 +50,6 @@ namespace pfasst
5350 class ValueError
5451 : public invalid_argument
5552 {
56- protected:
57- string msg;
58-
5953 public:
6054 explicit ValueError (const string& msg);
6155 virtual const char * what () const throw();
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace pfasst
2121 */
2222 const char * NotImplementedYet::what () const throw()
2323 {
24- return (string (" Not implemented/supported yet, required for: " ) + this -> msg ).c_str ();
24+ return (string (" Not implemented/supported yet, required for: " ) + string ( runtime_error::what ()) ).c_str ();
2525 }
2626
2727
@@ -36,7 +36,7 @@ namespace pfasst
3636 */
3737 const char * ValueError::what () const throw()
3838 {
39- return (string (" ValueError: " ) + this -> msg ).c_str ();
39+ return (string (" ValueError: " ) + string ( invalid_argument::what ()) ).c_str ();
4040 }
4141
4242
You can’t perform that action at this time.
0 commit comments