diff options
Diffstat (limited to 'nihil/usage_error.ccm')
| -rw-r--r-- | nihil/usage_error.ccm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nihil/usage_error.ccm b/nihil/usage_error.ccm index 41de29c..abbd6f0 100644 --- a/nihil/usage_error.ccm +++ b/nihil/usage_error.ccm @@ -4,20 +4,19 @@ module; -#include <format> -#include <utility> +#include <string> export module nihil:usage_error; -import :generic_error; +import :error; namespace nihil { /* * Exception thrown to indicate invalid command-line arguments. */ -export struct usage_error : generic_error { - usage_error(std::string what) : generic_error(std::move(what)) {} +export struct usage_error : error { + usage_error(std::string_view what) : error(what) {} }; } // namespace nihil |
