[libcxx] r194154 - Fix several tuple bugs that were exposed by clang's implementation of CWG 1402. This fixes http://llvm.org/bugs/show_bug.cgi?id=17798.

Howard Hinnant hhinnant at apple.com
Wed Nov 6 12:20:08 PST 2013


On Nov 6, 2013, at 2:50 PM, Richard Smith <richard at metafoo.co.uk> wrote:

> FWIW, you can avoid this with a technique like:
> 
> struct __swallow {
>   template<typename...Ts> __swallow(Ts &&) {}
> };
> 
> and then use __swallow{...} instead of __swallow(...). (Braced initialization gives you guaranteed left-to-right ordering.)

That's good to know, thanks.

Howard




More information about the cfe-commits mailing list