From 2a429ca76b97cca197f105b665271360b74f6917 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Aug 2012 04:22:07 +0000 Subject: Remove glib dependency. Make Symbol, URI, and Path simpler derivatives of std::string. 100% test coverage by line for Symbol, URI, Path, AtomicInt, and AtomicPtr. Add Raul::Exception. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4686 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Configuration.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'raul/Configuration.hpp') diff --git a/raul/Configuration.hpp b/raul/Configuration.hpp index 554b247..6e45d3c 100644 --- a/raul/Configuration.hpp +++ b/raul/Configuration.hpp @@ -22,12 +22,13 @@ #include #include -#include #include #include #include #include +#include "raul/Exception.hpp" + namespace Raul { /** Program configuration (command line options and/or configuration file). @@ -126,11 +127,8 @@ public: void print_usage(const std::string& program, std::ostream& os); - struct CommandLineError : public std::exception { - explicit CommandLineError(const std::string& m) : msg(m) {} - ~CommandLineError() throw() {} - const char* what() const throw() { return msg.c_str(); } - std::string msg; + struct CommandLineError : public Exception { + explicit CommandLineError(const std::string& m) : Exception(m) {} }; void parse(int argc, char** argv) throw (CommandLineError); -- cgit v1.2.1