Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
9d829437
Commit
9d829437
authored
Feb 25, 2020
by
Cédric Traizet
Browse files
ENH: cast the dummy initializer list to void to silence unused parameter warning
parent
247cd52b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Functor/include/otbVariadicInputsImageFilter.h
View file @
9d829437
...
...
@@ -145,7 +145,9 @@ private:
template
<
class
Tuple
,
size_t
...
Is
>
void
SetInputsImpl
(
Tuple
&
t
,
std
::
index_sequence
<
Is
...
>
)
{
std
::
initializer_list
<
int
>
{(
this
->
template
SetInput
<
Is
>(
std
::
get
<
Is
>
(
t
)),
0
)...};
// Will be easier to write in c++17 with fold expressions
// (this->template SetInput<Is>(std::get<Is>(t)),...);
(
void
)
std
::
initializer_list
<
int
>
{(
this
->
template
SetInput
<
Is
>(
std
::
get
<
Is
>
(
t
)),
0
)...};
}
template
<
size_t
...
Is
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment