Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0de9f3ba1 | ||
|
|
5f7d26212b | ||
|
|
290f750ee7 |
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user