1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-02 21:53:51 +00:00

Adding potential fix for a warning (#85)

This commit is contained in:
Henry Schreiner 2018-03-10 12:40:57 +01:00 committed by GitHub
parent 436a3ad0c5
commit 446524687a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,21 +95,21 @@ template <typename CRTP> class OptionBase {
/// Set the multi option policy to take last
CRTP *take_last() {
CRTP *self = static_cast<CRTP *>(this);
auto self = static_cast<CRTP *>(this);
self->multi_option_policy(MultiOptionPolicy::TakeLast);
return self;
}
/// Set the multi option policy to take last
CRTP *take_first() {
CRTP *self = static_cast<CRTP *>(this);
auto self = static_cast<CRTP *>(this);
self->multi_option_policy(MultiOptionPolicy::TakeFirst);
return self;
}
/// Set the multi option policy to take last
CRTP *join() {
CRTP *self = static_cast<CRTP *>(this);
auto self = static_cast<CRTP *>(this);
self->multi_option_policy(MultiOptionPolicy::Join);
return self;
}