mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-03 14:03:52 +00:00
Adding potential fix for a warning (#85)
This commit is contained in:
parent
436a3ad0c5
commit
446524687a
@ -95,21 +95,21 @@ template <typename CRTP> class OptionBase {
|
|||||||
|
|
||||||
/// Set the multi option policy to take last
|
/// Set the multi option policy to take last
|
||||||
CRTP *take_last() {
|
CRTP *take_last() {
|
||||||
CRTP *self = static_cast<CRTP *>(this);
|
auto self = static_cast<CRTP *>(this);
|
||||||
self->multi_option_policy(MultiOptionPolicy::TakeLast);
|
self->multi_option_policy(MultiOptionPolicy::TakeLast);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the multi option policy to take last
|
/// Set the multi option policy to take last
|
||||||
CRTP *take_first() {
|
CRTP *take_first() {
|
||||||
CRTP *self = static_cast<CRTP *>(this);
|
auto self = static_cast<CRTP *>(this);
|
||||||
self->multi_option_policy(MultiOptionPolicy::TakeFirst);
|
self->multi_option_policy(MultiOptionPolicy::TakeFirst);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the multi option policy to take last
|
/// Set the multi option policy to take last
|
||||||
CRTP *join() {
|
CRTP *join() {
|
||||||
CRTP *self = static_cast<CRTP *>(this);
|
auto self = static_cast<CRTP *>(this);
|
||||||
self->multi_option_policy(MultiOptionPolicy::Join);
|
self->multi_option_policy(MultiOptionPolicy::Join);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user