From 37d6c10f671719c41fe532eb54afdcb95d90c5a4 Mon Sep 17 00:00:00 2001 From: paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon, 30 Oct 2006 23:23:44 +0000 Subject: [PATCH] 2006-10-30 Paolo Carlini <pcarlini@suse.de> * include/tr1/utility (tuple_size<std::pair<> >::value): Provide definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118207 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/tr1/utility | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 21f803052f38..84f7775ea987 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2006-10-30 Paolo Carlini <pcarlini@suse.de> + + * include/tr1/utility (tuple_size<std::pair<> >::value): Provide + definition. + 2006-10-30 Paolo Carlini <pcarlini@suse.de> * include/tr1/tuple_iterate.h (tuple_size<tuple<> >::value): Provide diff --git a/libstdc++-v3/include/tr1/utility b/libstdc++-v3/include/tr1/utility index db140b29a664..d9b99ec00329 100644 --- a/libstdc++-v3/include/tr1/utility +++ b/libstdc++-v3/include/tr1/utility @@ -1,6 +1,6 @@ // TR1 utility -*- C++ -*- -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,10 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) template<class _Tp1, class _Tp2> struct tuple_size<std::pair<_Tp1, _Tp2> > { static const int value = 2; }; - + + template<class _Tp1, class _Tp2> + const int tuple_size<std::pair<_Tp1, _Tp2> >::value; + template<class _Tp1, class _Tp2> struct tuple_element<0, std::pair<_Tp1, _Tp2> > { typedef _Tp1 type; }; -- GitLab