Commit 65f2b77f authored by Songqiao Su's avatar Songqiao Su Committed by Facebook GitHub Bot

missing braces in CancellationToken merge

Reviewed By: vitaut

Differential Revision: D27372973

fbshipit-source-id: fcbad2d9fceaecb4b02f5015a808f5744c7cb771
parent 9110eef9
......@@ -384,7 +384,7 @@ inline FixedMergingCancellationState<N>::FixedMergingCancellationState(
template <typename... Ts>
inline CancellationToken CancellationToken::merge(Ts&&... tokens) {
std::array<bool, sizeof...(Ts)> cancellable{tokens.canBeCancelled()...};
std::array<bool, sizeof...(Ts)> cancellable{{tokens.canBeCancelled()...}};
bool canBeCancelled =
std::any_of(cancellable.begin(), cancellable.end(), identity);
return canBeCancelled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment