In a binary fold,
op1 and
op2
shall be the same
fold-operator,
and either
e1
shall contain an unexpanded pack
or
e2
shall contain an unexpanded pack,
but not both
. [
Example 1:
template<typename ...Args>
bool f(Args ...args) {
return (true && ... && args);
}
template<typename ...Args>
bool f(Args ...args) {
return (args + ... + args);
}
—
end example]