1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 12:13:52 +00:00

Fix a few warnings, add to Changelog

This commit is contained in:
Henry Fredrick Schreiner 2017-03-30 16:39:20 -04:00
parent f88aa33908
commit 43b451e327
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* Better CMake named target (CLI11) * Better CMake named target (CLI11)
* More warnings added, fixed * More warnings added, fixed
* Ini output now includes `=false` when `default_also` is true
## Version 0.8 ## Version 0.8

View File

@ -350,7 +350,7 @@ TEST(Types, LexicalCastDouble) {
std::string input = "9.12"; std::string input = "9.12";
long double x; long double x;
EXPECT_TRUE(CLI::detail::lexical_cast(input, x)); EXPECT_TRUE(CLI::detail::lexical_cast(input, x));
EXPECT_FLOAT_EQ((long double) 9.12, x); EXPECT_FLOAT_EQ(9.12, (float) x);
std::string bad_input = "hello"; std::string bad_input = "hello";
EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x)); EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x));