diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-01 17:53:24 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-01 17:53:24 +0000 |
| commit | 7f726eff24ed1dd40b104ca01302b8537493515c (patch) | |
| tree | 5c4d2509eb92c129fe70beeb2e6dc6aec42e1430 | |
| parent | 2a7c7c0ffaf9db4f85c4afb96808f452fbdd5409 (diff) | |
| download | ppe42-gcc-7f726eff24ed1dd40b104ca01302b8537493515c.tar.gz ppe42-gcc-7f726eff24ed1dd40b104ca01302b8537493515c.zip | |
2004-11-01 Chris Jefferson <chris@bubblescope.net>
PR libstdc++/18159
* include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
(get(const pair)): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89944 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
| -rw-r--r-- | libstdc++-v3/include/tr1/tuple | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ec19144b965..a2af5a8b1ff 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-11-01 Chris Jefferson <chris@bubblescope.net> + + PR libstdc++/18159 + * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int. + (get(const pair)): Likewise. + 2004-11-01 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (num_get<>::_M_extract_float): diff --git a/libstdc++-v3/include/tr1/tuple b/libstdc++-v3/include/tr1/tuple index 272edc3cb91..a5fe43a2fcc 100644 --- a/libstdc++-v3/include/tr1/tuple +++ b/libstdc++-v3/include/tr1/tuple @@ -1545,15 +1545,15 @@ namespace tr1 struct tuple_element<1, std::pair<_Tp1, _Tp2> > { typedef _Tp2 type; }; - template<int _I, class _Tp1, class _Tp2> - typename tuple_element<_I, tuple<_Tp1, _Tp2> >::type + template<int _Int, class _Tp1, class _Tp2> + typename tuple_element<_Int, tuple<_Tp1, _Tp2> >::type get(pair<_Tp1, _Tp2>& __in) - { return get<_I>(tie(__in.first, __in.second)); } + { return get<_Int>(tie(__in.first, __in.second)); } - template<int _I, class _Tp1, class _Tp2> - typename tuple_element<_I, tuple<_Tp1, _Tp2> >::type + template<int _Int, class _Tp1, class _Tp2> + typename tuple_element<_Int, tuple<_Tp1, _Tp2> >::type get(const pair<_Tp1, _Tp2>& __in) - { return get<_I>(tie(__in.first, __in.second)); } + { return get<_Int>(tie(__in.first, __in.second)); } } } |

