diff --git a/docs/Doxyfile b/docs/Doxyfile index 0e2a8c75..5363a26e 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -334,7 +334,7 @@ BUILTIN_STL_SUPPORT = NO # enable parsing support. # The default value is: NO. -CPP_CLI11_SUPPORT = NO +CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen diff --git a/include/CLI/FormatterFwd.hpp b/include/CLI/FormatterFwd.hpp index cfd5fd10..0344256c 100644 --- a/include/CLI/FormatterFwd.hpp +++ b/include/CLI/FormatterFwd.hpp @@ -86,9 +86,11 @@ class FormatterBase { class FormatterLambda final : public FormatterBase { using funct_t = std::function; + /// The lambda to hold and run funct_t lambda_; public: + /// Create a FormatterLambda with a lambda function explicit FormatterLambda(funct_t funct) : lambda_(std::move(funct)) {} /// This will simply call the lambda function diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 48b0f7b5..4ac555e3 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -51,6 +51,7 @@ template class OptionBase { /// Policy for multiple arguments when `expected_ == 1` (can be set on bool flags, too) MultiOptionPolicy multi_option_policy_{MultiOptionPolicy::Throw}; + /// Copy the contents to another similar class (one based on OptionBase) template void copy_to(T *other) const { other->group(group_); other->required(required_); @@ -440,7 +441,7 @@ class Option : public OptionBase