From f7fe9cf4395ae3cb0a3a4f2c8e051d6a57517095 Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Sat, 16 Nov 2019 21:51:01 -0600 Subject: [PATCH] Remove unused space in Argument structure --- include/argparse.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/argparse.hpp b/include/argparse.hpp index 8d11ec2..dd937b7 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -104,7 +104,8 @@ public: template explicit Argument(Args... args) - : mNames({std::move(args)...}), mIsOptional((is_optional(args) || ...)) { + : mNames({std::move(args)...}), mIsOptional((is_optional(args) || ...)), + mIsRequired(false), mIsUsed(false) { std::sort( mNames.begin(), mNames.end(), [](const auto &lhs, const auto &rhs) { return lhs.size() == rhs.size() ? lhs < rhs : lhs.size() < rhs.size(); @@ -357,11 +358,10 @@ private: std::in_place_type, [](const std::string &aValue) { return aValue; }}; std::vector mValues; - std::vector mRawValues; size_t mNumArgs = 1; - bool mIsOptional = false; - bool mIsRequired = false; - bool mIsUsed = false; // relevant for optional arguments. True if used by user + bool mIsOptional : 1; + bool mIsRequired : 1; + bool mIsUsed : 1; // True if the optional argument is used by user static constexpr auto mHelpOption = "-h"; static constexpr auto mHelpOptionLong = "--help";