summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctor.h b/src/ctor.h
index 27b30af..2ecef0e 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -164,7 +164,7 @@ class flag
{
public:
flag(std::string_view str);
- flag(const char* str);
+ flag(const char* str) : flag(std::string_view(str)) {}
flag(T opt_) : opt(opt_) {}
flag(T opt_, std::string_view arg_, std::string_view arg2_ = "")
: opt(opt_), arg(arg_), arg2(arg2_) {}