Skip to content

Tags: rauhul/cxxopts

Tags

v2.2.0

Toggle v2.2.0's commit message
Add to changelog for jarro2783#170

v2.1.2

Toggle v2.1.2's commit message
Version bump 2.1.2

v2.1.1

Toggle v2.1.1's commit message
Add a readme comment about versions

v2.1.0

Toggle v2.1.0's commit message
Prepare changelog for release

v2.0.0

Toggle v2.0.0's commit message
Merge branch '2_0'

v1.4.4

Toggle v1.4.4's commit message
Fix some strange issues in integer_parser (jarro2783#80)

* Prevent malformed numbers from being parsed as correct numbers.

Fixes jarro2783#78. If you passed a string for example "test" it would get parsed to 1400.
The problem was that the parser did not throw an exception when an incorrect char was encountered.
Also a number without 0x in front with hexadecimal digits in it got parsed.
The number was treated as a hexadecimal number but it was still calculated with base 10.
So now before the current char is used, it is checked if it is valid in the current base.
Furthermore the number 0x0 was not a valid number, it now is a special case in the `integer_pattern`.

* Fixed `integer_pattern` so it works correctly under clang. Added testcase for invalid integers and for 0x0 being a valid number.

v1.4.3

Toggle v1.4.3's commit message
Fix compiler warnings for MSVC

Fixes jarro2783#62. This fixes compiler warnings that are raised by MSVC.

In one case the code that was warned about was never executed, but
this compiles it out in that case to silence the warning.

v1.4.2

Toggle v1.4.2's commit message
Minor tweaks

v1.4.1

Toggle v1.4.1's commit message
remove osx for now

v1.4.0

Toggle v1.4.0's commit message
Improve integer parsing

Fixes jarro2783#39. Closes jarro2783#40. This is an overhaul of the way that integer
arguments are parsed. Instead of using std::istream, which allows,
for example, negative integers for unsigned types, we use our own
parser.

This allows us to do proper range checking depending on the type,
and to correctly check for negative values passed to unsigned types.

This also allows the handling of base 16 numbers.