We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd929a commit 3e452e2Copy full SHA for 3e452e2
include/CLI/App.hpp
@@ -799,10 +799,10 @@ class App {
799
800
/// Add option for flag with integer result - defaults to allowing multiple passings, but can be forced to one
801
/// if `multi_option_policy(CLI::MultiOptionPolicy::Throw)` is used.
802
- template <typename T,
+ template <
803
+ typename T,
804
enable_if_t<std::is_constructible<T, std::int64_t>::value && !std::is_const<T>::value && !is_bool<T>::value,
- detail::enabler> =
805
- detail::dummy>
+ detail::enabler> = detail::dummy>
806
Option *add_flag(std::string flag_name,
807
T &flag_count, ///< A variable holding the count
808
std::string flag_description = "") {
0 commit comments