aboutsummaryrefslogtreecommitdiffstats
path: root/nihil/usage_error.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil/usage_error.ccm')
-rw-r--r--nihil/usage_error.ccm5
1 files changed, 1 insertions, 4 deletions
diff --git a/nihil/usage_error.ccm b/nihil/usage_error.ccm
index 9b56991..41de29c 100644
--- a/nihil/usage_error.ccm
+++ b/nihil/usage_error.ccm
@@ -17,10 +17,7 @@ namespace nihil {
* Exception thrown to indicate invalid command-line arguments.
*/
export struct usage_error : generic_error {
- template<typename... Args>
- usage_error(std::format_string<Args...> fmt, Args &&...args)
- : generic_error(fmt, std::forward<Args>(args)...)
- {}
+ usage_error(std::string what) : generic_error(std::move(what)) {}
};
} // namespace nihil