[cfe-dev] [libcxx]: problem involving tuple_size<pair<_T1, _T2> > and tuple_element in C++03 mode

Howard Hinnant hhinnant at apple.com
Tue Nov 6 13:43:20 PST 2012


On Oct 22, 2012, at 1:34 AM, ZhangXiongpang <zhangxiongpang at gmail.com> wrote:

> I think it should be as:
> -----------------------------------------------------------
> --- utility_old    2012-09-18 18:48:54.000000000 +0800
> +++ utility    2012-10-22 16:31:22.000000000 +0800
> @@ -460,7 +460,7 @@
> 
> #endif  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
> 
> -#ifndef _LIBCPP_HAS_NO_VARIADICS
> +#ifdef _LIBCPP_HAS_NO_VARIADICS
> 
> template <class _T1, class _T2>
>   class _LIBCPP_VISIBLE tuple_size<pair<_T1, _T2> >
> 
> -----------------------------------------------------------
> or just remove the "#ifndef _LIBCPP_HAS_NO_VARIADICS" and its "#endif".

Committed revision 167491.

Howard




More information about the cfe-dev mailing list