[PATCH] D28222: [libcxx] Re-implement LWG 2770 again: Fix tuple_size to work with structured bindings
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 3 05:28:08 PST 2017
EricWF added inline comments.
================
Comment at: include/__tuple:34
+ const _Tp,
+ typename enable_if<!is_volatile<_Tp>::value>::type,
+ decltype(tuple_size<_Tp>::value)>>
----------------
Without this extra `enable_if`, GCC will diagnose each of these three specializations as ambiguous.
https://reviews.llvm.org/D28222
More information about the cfe-commits
mailing list