Opened 6 years ago

Last modified 6 years ago

#12332 new Bugs

Couple of bugs found in version 1.60.0

Reported by: Paz_Offer@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

Hi Boost,

Please note the following bug report

BUG-1
File: 1.60.0\boost\program_options\detail\cmdline.hpp
Line: 139
Expression: 'args'
The bug:
This variable is a member of class 'cmdline', thus name should be prefixed with 'm_'. This later will become a problem as methods arguments are using the name 'args' for method arguments and thus new 'args' is hiding class member 'args'.

BUG-2
File: 1.60.0\libs\program_options\src\variables_map.cpp
Line: 71
Expression: '

string original_token =

...'

The bug:
Variable 'original_token' is already defined in this scope at line 43. This new declaration of same variable hides previous declaraion.

Thanks, Paz

Change History (1)

comment:1 by Michel Morin, 6 years ago

Component: Noneprogram_options
Owner: set to Vladimir Prus
Note: See TracTickets for help on using tickets.