Ignore:
Timestamp:
Oct 23, 2022, 9:08:55 AM (3 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
0daef6
Parents:
f71fc8
git-author:
Frederik Heber <frederik.heber@…> (12/04/21 23:38:32)
git-committer:
Frederik Heber <frederik.heber@…> (10/23/22 09:08:55)
Message:

FIX: CommandLineParser's implicit argument does not work anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/CommandLineParser.cpp

    rf71fc8 r30def8  
    204204 * See https://lists.boost.org/Archives/boost/2017/01/232272.php
    205205 */
    206 #if BOOST_VERSION >= 106300
     206#if BOOST_VERSION >= 106300 and BOOST_VERSION < 106900
    207207template <typename T>
    208208struct greedy_implicit_value : public po::typed_value<T>
     
    224224  return new greedy_implicit_value<T>(value);
    225225}
    226 #else
     226#endif
     227#if BOOST_VERSION < 106300
    227228template <typename T>
    228229po::typed_value<T>* implicit_value(const T& value)
    229230{
    230231  return new po::typed_value<T>()->implicit_value(value);
     232}
     233#endif
     234#if BOOST_VERSION >= 106900
     235template <typename T>
     236po::typed_value<T>* implicit_value(const T& value)
     237{
     238  return (new po::typed_value<T>(NULL))->implicit_value(value);
    231239}
    232240#endif
Note: See TracChangeset for help on using the changeset viewer.