aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug/debug.h
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2005-01-31 16:22:01 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2005-01-31 16:22:01 +0000
commitc0736a9ddbfc1651bd3c5602cccade4e9f69f3bd (patch)
treeea17c9630d9b1eae99293b1b8fb9d7fbf632039f /libstdc++-v3/include/debug/debug.h
parent4e8f0a2e12493d52dd8009a8921496fce9a5ae63 (diff)
downloadgcc-c0736a9ddbfc1651bd3c5602cccade4e9f69f3bd.zip
gcc-c0736a9ddbfc1651bd3c5602cccade4e9f69f3bd.tar.gz
gcc-c0736a9ddbfc1651bd3c5602cccade4e9f69f3bd.tar.bz2
cpp_type_traits.h: Add types to the structs thus making type_traits.h redundant...
2005-01-31 Paolo Carlini <pcarlini@suse.de> Gabriel Dos Reis <gdr@integrable-solutions.net> * include/bits/cpp_type_traits.h: Add types to the structs thus making type_traits.h redundant; exploit new __truth_type and __traitor helpers. * include/bits/type_traits.h: Remove. * include/Makefile.am: Update. * include/Makefile.in: Regenerate. * include/backward/tempbuf.h: Include cpp_type_traits.h instead. * include/bits/basic_string.h (replace(iterator, iterator, _InputIterator, _InputIterator), _S_construct(_InIterator, _InIterator, const _Alloc&)): Use __is_integer instead. * include/bits/stl_bvector.h (vector(_InputIterator, _InputIterator, const allocator_type&), assign(_InputIterator, _InputIterator), insert(iterator, _InputIterator, _InputIterator)): Likewise. * include/bits/stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator)): Use __is_scalar. * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator, const allocator_type&), assign(_InputIterator, _InputIterator), insert(iterator, _InputIterator, _InputIterator)): Use __is_integer. * include/bits/stl_list.h (assign(_InputIterator, _InputIterator), insert(iterator, _InputIterator, _InputIterator)): Likewise. * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator, _ForwardIterator)): Use __is_scalar. * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator, _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&)): Likewise. * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator, const allocator_type&), assign(_InputIterator, _InputIterator), insert(iterator, _InputIterator, _InputIterator)): Use __is_integer. * include/debug/debug.h (__valid_range(const _InputIterator&, const _InputIterator&)): Use __is_integer. * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise. * include/std/std_string.h: Include cpp_type_traits.h instead. Co-Authored-By: Gabriel Dos Reis <gdr@integrable-solutions.net> From-SVN: r94484
Diffstat (limited to 'libstdc++-v3/include/debug/debug.h')
-rw-r--r--libstdc++-v3/include/debug/debug.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/debug/debug.h b/libstdc++-v3/include/debug/debug.h
index 87bbcfa..94c89e9 100644
--- a/libstdc++-v3/include/debug/debug.h
+++ b/libstdc++-v3/include/debug/debug.h
@@ -1,6 +1,6 @@
// Debugging support implementation -*- C++ -*-
-// Copyright (C) 2003
+// Copyright (C) 2003, 2005
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -273,7 +273,7 @@ _GLIBCXX_DEBUG_VERIFY(::std::__is_heap(_First, _Last, _Pred), \
#include <stddef.h> // for ptrdiff_t
#include <bits/stl_iterator_base_types.h> // for iterator_traits, categories
-#include <bits/type_traits.h> // for _Is_integer
+#include <bits/cpp_type_traits.h> // for __is_integer
namespace __gnu_debug
{
@@ -373,7 +373,7 @@ namespace __gnu_debug
inline bool
__valid_range(const _InputIterator& __first, const _InputIterator& __last)
{
- typedef typename _Is_integer<_InputIterator>::_Integral _Integral;
+ typedef typename std::__is_integer<_InputIterator>::__type _Integral;
return __gnu_debug::__valid_range_aux(__first, __last, _Integral());
}