Compare commits

...

3 Commits
master ... 2_1

Author SHA1 Message Date
Jarryd Beck
a0de9f3ba1 Version bump 2.1.2 2019-01-14 08:12:07 +11:00
Jarryd Beck
5f7d26212b CHANGELOG for #134 2019-01-14 07:59:42 +11:00
Jan Koßmann
290f750ee7 Fix std::forward return in toLocalString (#134) 2019-01-14 07:58:03 +11:00
3 changed files with 9 additions and 3 deletions

View File

@ -3,6 +3,12 @@
This is the changelog for `cxxopts`, a C++11 library for parsing command line
options. The project adheres to semantic versioning.
## 2.1.2
### Bug Fixes
* Use `std::forward` instead of returning a copy in `toLocalString`.
## 2.1.1
### Bug Fixes

View File

@ -22,7 +22,7 @@ project(cxxopts)
enable_testing()
set(VERSION "1.2.0")
set(VERSION "2.1.2")
option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ON)
option(CXXOPTS_BUILD_TESTS "Set to ON to build tests" OFF)

View File

@ -47,7 +47,7 @@ namespace cxxopts
{
static constexpr struct {
uint8_t major, minor, patch;
} version = {2, 1, 0};
} version = {2, 1, 2};
}
//when we ask cxxopts to use Unicode, help strings are processed using ICU,
@ -202,7 +202,7 @@ namespace cxxopts
T
toLocalString(T&& t)
{
return t;
return std::forward<T>(t);
}
inline