From b54403557e108d4c8a4ea76b59fbb5aafe6f4f5d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 13 Jun 2022 15:38:16 +1000 Subject: [PATCH] cmdopt2: add tribool support --- cmdopt2/args.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmdopt2/args.hpp b/cmdopt2/args.hpp index 8daa8793..d0e850b5 100644 --- a/cmdopt2/args.hpp +++ b/cmdopt2/args.hpp @@ -9,6 +9,7 @@ #pragma once #include +#include #include #include #include @@ -30,7 +31,7 @@ namespace cruft::cmdopt2 { template - concept parseable = std::is_arithmetic_v; + concept parseable = std::is_arithmetic_v or std::is_same_v; template