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 | 35 | namespace CLI { |
| 36 | 36 | |
| 37 | 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 | 39 | T v; |
| 40 | 40 | in >> v; |
| 41 | 41 | val = v; |
| ... | ... | @@ -44,7 +44,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std |
| 44 | 44 | #endif |
| 45 | 45 | |
| 46 | 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 | 48 | T v; |
| 49 | 49 | in >> v; |
| 50 | 50 | val = v; |
| ... | ... | @@ -53,7 +53,7 @@ template <typename T> std::istringstream &operator>>(std::istringstream &in, std |
| 53 | 53 | #endif |
| 54 | 54 | |
| 55 | 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 | 57 | T v; |
| 58 | 58 | in >> v; |
| 59 | 59 | val = v; | ... | ... |