Commit ef2d497fcb19ce8f19d352eba4e1629fde6d1326
1 parent
227eabec
Removing unneeded string qualifier
Showing
1 changed file
with
3 additions
and
3 deletions
include/CLI/Optional.hpp
| @@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
| 35 | namespace CLI { | 35 | namespace CLI { |
| 36 | 36 | ||
| 37 | #ifdef CLI11_STD_OPTIONAL | 37 | #ifdef CLI11_STD_OPTIONAL |
| 38 | -template <typename T> std::istringstream &operator>>(std::istringstream &in, std::optional<T> &val) { | 38 | +template <typename T> std::istream &operator>>(std::istream &in, std::optional<T> &val) { |
| 39 | T v; | 39 | T v; |
| 40 | in >> v; | 40 | in >> v; |
| 41 | val = v; | 41 | val = v; |
| @@ -44,7 +44,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std | @@ -44,7 +44,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std | ||
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | #ifdef CLI11_EXPERIMENTAL_OPTIONAL | 46 | #ifdef CLI11_EXPERIMENTAL_OPTIONAL |
| 47 | -template <typename T> std::istringstream &operator>>(std::istringstream &in, std::experimental::optional<T> &val) { | 47 | +template <typename T> std::istream &operator>>(std::istream &in, std::experimental::optional<T> &val) { |
| 48 | T v; | 48 | T v; |
| 49 | in >> v; | 49 | in >> v; |
| 50 | val = v; | 50 | val = v; |
| @@ -53,7 +53,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std | @@ -53,7 +53,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std | ||
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | #ifdef CLI11_BOOST_OPTIONAL | 55 | #ifdef CLI11_BOOST_OPTIONAL |
| 56 | -template <typename T> std::istringstream &operator>>(std::istringstream &in, boost::optional<T> &val) { | 56 | +template <typename T> std::istream &operator>>(std::istream &in, boost::optional<T> &val) { |
| 57 | T v; | 57 | T v; |
| 58 | in >> v; | 58 | in >> v; |
| 59 | val = v; | 59 | val = v; |