Extend variadic template hack for /analyze.
A recent Chrome change broke the /analyze builder by using a larger
Tuple than had been allowed for in the previous VC++ bug workaround.
This change unblocks the /analyze builder and will not affect
/analyze builds.
The /analyze error is:
e:\b\build\slave\chromium_windows_analyze\build\src\base\tuple.h(99) : error C2027: use of undefined type 'MakeIndexSequenceImpl<0xc>'
e:\b\build\slave\chromium_windows_analyze\build\src\device\usb\usb_device_handle_impl.cc(608)
and came from https://codereview.chromium.org/980023002
R=thakis@chromium.org
BUG=427616
Review URL: https://codereview.chromium.org/1095543003
Cr-Commit-Position: refs/heads/master@{#325877}
CrOS-Libchrome-Original-Commit: 35709e179d83a2d436700c7a3974b70a82419d89
diff --git a/base/tuple.h b/base/tuple.h
index 41c6a00..88c3075 100644
--- a/base/tuple.h
+++ b/base/tuple.h
@@ -81,6 +81,12 @@
template <> struct MakeIndexSequenceImpl<11> {
using Type = IndexSequence<0,1,2,3,4,5,6,7,8,9,10>;
};
+template <> struct MakeIndexSequenceImpl<12> {
+ using Type = IndexSequence<0,1,2,3,4,5,6,7,8,9,10,11>;
+};
+template <> struct MakeIndexSequenceImpl<13> {
+ using Type = IndexSequence<0,1,2,3,4,5,6,7,8,9,10,11,12>;
+};
#else // defined(WIN) && defined(_PREFAST_)