From 6d0fd96bc28cd6a3d7efed01b6de1805e2c4bf9f Mon Sep 17 00:00:00 2001 From: Kevin Lussier Date: Thu, 14 Jun 2018 15:25:50 -0700 Subject: [PATCH] Don't shadow the 'allowed' variable --- include/cxxopts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index e47bd75..d4a3a99 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1962,7 +1962,7 @@ Options::help_one_group(const std::string& g) const if ( !group->second.notes.empty() ) { - auto allowed = size_t{76} - OPTION_DESC_GAP; + allowed = size_t{76} - OPTION_DESC_GAP; result += '\n'; for ( auto note : group->second.notes ) {