diff --git a/cmdopt2/arg.hpp b/cmdopt2/arg.hpp index 12a9508d..3098b30c 100644 --- a/cmdopt2/arg.hpp +++ b/cmdopt2/arg.hpp @@ -8,9 +8,10 @@ #pragma once +#include +#include #include #include -#include #include #include @@ -38,7 +39,7 @@ namespace cruft::cmdopt2 { bind (ValueT &ref) { CHECK (!acceptor1); - if constexpr (std::is_same_v or std::is_same_v) { + if constexpr (cruft::concepts::stringy) { acceptor1 = [&ref] (std::string_view str) { ref = str; }; } else { acceptor1 = [&ref] (std::string_view str) { ref = parse::from_string (str); };