Skip to content

Commit

Permalink
Just rely purely on std::runtime_error
Browse files Browse the repository at this point in the history
Rather than duplicating functionality
  • Loading branch information
Mause committed Jun 4, 2014
1 parent 69c09b6 commit b8cb935
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/lib/rl_parser/rl_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ class syntax_error : public std::runtime_error {
public:
virtual ~syntax_error() {};
syntax_error(std::string msg) : std::runtime_error(msg.c_str()) {};
std::string msg;

virtual const char* what() const noexcept {
return msg.c_str();
}
};



opcode_vector parse(std::string input);

}}}
Expand Down

1 comment on commit b8cb935

@milesrout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was sure that was there for a reason..

Please sign in to comment.