From 0fe17e22f62aa18c07b05a18b51cb38125403c5e Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Mon, 22 Mar 2021 13:05:11 -0700 Subject: [PATCH] Replace integers with bool value keywords While the implicit conversions from `1` to `true` work correctly, this avoids the conversions. Signed-off-by: Sean Robinson --- include/argparse/argparse.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index 599e010..38c7d92 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -798,9 +798,9 @@ private: [](const std::string &aValue) { return aValue; }}; std::vector mValues; int mNumArgs = 1; - bool mIsOptional : 1; - bool mIsRequired : 1; - bool mIsUsed : 1; // True if the optional argument is used by user + bool mIsOptional : true; + bool mIsRequired : true; + bool mIsUsed : true; // True if the optional argument is used by user }; class ArgumentParser {