diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2010-08-06 11:28:50 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2010-08-06 11:28:50 +0000 |
commit | c2653d8fc2c0c59cbb0fa7c9fbcfc5642e0ae4f8 (patch) | |
tree | 6b4696e1ef22ec0426f056f0da4b4137baebf21a | |
parent | cd6b4a4bca97657af9e08583ac92f1833f6191eb (diff) | |
download | gcc-c2653d8fc2c0c59cbb0fa7c9fbcfc5642e0ae4f8.zip gcc-c2653d8fc2c0c59cbb0fa7c9fbcfc5642e0ae4f8.tar.gz gcc-c2653d8fc2c0c59cbb0fa7c9fbcfc5642e0ae4f8.tar.bz2 |
tuple (begin, end): Remove per GB 87.
2010-08-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/tuple (begin, end): Remove per GB 87.
* testsuite/20_util/tuple/range_access.cc: Remove.
From-SVN: r162942
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/std/tuple | 18 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/range_access.cc | 33 |
3 files changed, 5 insertions, 51 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8cd8bb2..ab4b694 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2010-08-06 Paolo Carlini <paolo.carlini@oracle.com> + * include/std/tuple (begin, end): Remove per GB 87. + * testsuite/20_util/tuple/range_access.cc: Remove. + +2010-08-06 Paolo Carlini <paolo.carlini@oracle.com> + * include/std/ratio (ratio_less): Improve, use ratio_divide to avoid more overflows. * testsuite/20_util/ratio/comparisons/comp1.cc: Extend. diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index d243251..8b2252e 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -697,24 +697,6 @@ namespace std const _Swallow_assign ignore{}; /** - * @brief Return the first of a tuple containing two input iterators. - * @param tpl Tuple. - */ - template<class _InputIterator> - inline _InputIterator - begin(const tuple<_InputIterator, _InputIterator>& __tpl) - { return get<0>(__tpl); } - - /** - * @brief Return the second of a tuple containing two input iterators. - * @param tpl Tuple. - */ - template<class _InputIterator> - inline _InputIterator - end(const tuple<_InputIterator, _InputIterator>& __tpl) - { return get<1>(__tpl); } - - /** * Stores a tuple of indices. Used by bind() to extract the elements * in a tuple. */ diff --git a/libstdc++-v3/testsuite/20_util/tuple/range_access.cc b/libstdc++-v3/testsuite/20_util/tuple/range_access.cc deleted file mode 100644 index dad7523..0000000 --- a/libstdc++-v3/testsuite/20_util/tuple/range_access.cc +++ /dev/null @@ -1,33 +0,0 @@ -// { dg-do compile } -// { dg-options "-std=gnu++0x" } - -// Copyright (C) 2010 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 -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without Pred the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -// 20.4.2.10, tuple range access: pair range access [tuple.range] - -#include <tuple> -#include <vector> - -void -test01() -{ - std::vector<double> v{1.0, 2.0, 3.0}; - auto t = std::make_tuple(v.begin(), v.end()); - std::begin(t); - std::end(t); -} |