Skip to content

Commit

Permalink
fix some errors from GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Feb 11, 2020
1 parent 2200f3c commit bc4a5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/CLI/TypeTools.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ bool lexical_cast(const std::string &input, T &output) {
template <typename T,
enable_if_t<classify_object<T>::value == object_category::complex_number, detail::enabler> = detail::dummy>
bool lexical_cast(const std::string &input, T &output) {
using XC = typename conditional_t<is_wrapper<T>::value, typename T::value_type, double>;
using XC = conditional_t<is_wrapper<T>::value, typename T::value_type, double>;
XC x, y;
auto str1 = input;
bool worked = false;
Expand Down Expand Up @@ -1006,7 +1006,7 @@ template <class T, class XC, enable_if_t<is_complex<XC>::value, detail::enabler>
bool lexical_conversion(const std::vector<std::string> &strings, T &output) {

if(strings.size() >= 2 && !strings[1].empty()) {
using XC2 = typename conditional_t<is_wrapper<XC>::value, typename XC::value_type, double>;
using XC2 = conditional_t<is_wrapper<XC>::value, typename XC::value_type, double>;
XC2 x, y;
auto str1 = strings[1];
if(str1.back() == 'i' || str1.back() == 'j') {
Expand Down

0 comments on commit bc4a5a1

Please sign in to comment.