Now that we use Boost::program_options, there is actually a good solution:
change the internal variables to unsigned
don't provide default values
in the function checkParameterValidity, we don't need the check for -1, but can check the (custom-typed) variables_map to see if they were defined or not.
since we use a modifiable variant of the variables_map, we can set the values as we did before.
Now that we use Boost::program_options, there is actually a good solution:
unsigned
checkParameterValidity
, we don't need the check for -1, but can check the (custom-typed) variables_map to see if they were defined or not.