You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Travis Vitek <Tr...@roguewave.com> on 2008/06/25 22:09:57 UTC

RE: svn commit: r669723 - in /stdcxx/branches/4.3.x: include/rw/_meta_cv.h include/rw/_tuple.h include/tuple tests/utilities/20.tuple.elem.cpp

 

>
>Author: elemings
>Date: Thu Jun 19 15:09:13 2008
>New Revision: 669723
>
>URL: http://svn.apache.org/viewvc?rev=669723&view=rev
>Log:
>2008-06-19  Eric Lemings <er...@roguewave.com>
>
>	STDCXX-958

[...]

>+template <int _Index, class _Head, class... _Tail>
>+_TYPENAME tuple_element<_Index, tuple<_Head, _Tail...> >::_Ref
>+get (tuple<_Head, _Tail...>& __tuple)
>+{
>+    typedef tuple_element<_Index, tuple<_Head, _Tail...> > _Tuple;
>+    return _Tuple::__get (__tuple);
>+}
>+
>+template <int _Index, class _Head, class... _Tail>
>+_TYPENAME tuple_element<_Index, tuple<_Head, _Tail...> >::_ConstRef
>+get (const tuple<_Head, _Tail...>& __tuple)
>+{
>+    typedef tuple_element<_Index, tuple<_Head, _Tail...> > _Tuple;
>+    return _Tuple::__get (__tuple);
>+}

I just noticed LWG775. We should probably consider adopting the proposed
reslution.

  http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#775

Travis

RE: svn commit: r669723 - in /stdcxx/branches/4.3.x: include/rw/_meta_cv.h include/rw/_tuple.h include/tuple tests/utilities/20.tuple.elem.cpp

Posted by Eric Lemings <Er...@roguewave.com>.
 

> -----Original Message-----
> From: Travis Vitek [mailto:Travis.Vitek@roguewave.com] 
> Sent: Wednesday, June 25, 2008 2:10 PM
> To: dev@stdcxx.apache.org
> Subject: RE: svn commit: r669723 - in /stdcxx/branches/4.3.x: 
> include/rw/_meta_cv.h include/rw/_tuple.h include/tuple 
> tests/utilities/20.tuple.elem.cpp
> 
>  
...
> 
> >+template <int _Index, class _Head, class... _Tail>
> >+_TYPENAME tuple_element<_Index, tuple<_Head, _Tail...> >::_Ref
> >+get (tuple<_Head, _Tail...>& __tuple)
> >+{
> >+    typedef tuple_element<_Index, tuple<_Head, _Tail...> > _Tuple;
> >+    return _Tuple::__get (__tuple);
> >+}
> >+
> >+template <int _Index, class _Head, class... _Tail>
> >+_TYPENAME tuple_element<_Index, tuple<_Head, _Tail...> >::_ConstRef
> >+get (const tuple<_Head, _Tail...>& __tuple)
> >+{
> >+    typedef tuple_element<_Index, tuple<_Head, _Tail...> > _Tuple;
> >+    return _Tuple::__get (__tuple);
> >+}
> 
> I just noticed LWG775. We should probably consider adopting 
> the proposed
> reslution.
> 
>   http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#775

Noted.  Thanks for the link.

Brad.