diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 52d5c167c..51d23ee73 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -87,7 +87,7 @@ template class OptionBase { // setters /// Changes the group membership - CRTP *group(std::string name) { + CRTP *group(const std::string &name) { group_ = name; return static_cast(this); } @@ -346,7 +346,7 @@ class Option : public OptionBase