aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2002-04-17 06:20:20 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2002-04-17 06:20:20 +0000
commit42ca0438ce1cbbd45e4ea07515ab7ee8e1aa7d06 (patch)
tree6ca2dbe732728b7f5cc46dc3a41e38e6646e56b6 /libstdc++-v3/src
parentc0fe1b1d5655f666d1d13f3b9a474a66bdabe739 (diff)
downloadgcc-42ca0438ce1cbbd45e4ea07515ab7ee8e1aa7d06.tar.gz
gcc-42ca0438ce1cbbd45e4ea07515ab7ee8e1aa7d06.tar.bz2
gcc-42ca0438ce1cbbd45e4ea07515ab7ee8e1aa7d06.zip
concept-inst.cc (vector<locale::facet*>): Remove instantiations.
2002-04-16 Benjamin Kosnik <bkoz@redhat.com> * src/concept-inst.cc (vector<locale::facet*>): Remove instantiations. * src/stl-inst.cc (vector::_M_insert_aux): Remove instantiation. (__malloc_alloc_template): Conditionalize. * include/bits/istream.tcc: Remove sputbackc calls. * testsuite/19_diagnostics/stdexceptions.cc: Fix comment. From-SVN: r52405
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/concept-inst.cc51
-rw-r--r--libstdc++-v3/src/stl-inst.cc10
2 files changed, 3 insertions, 58 deletions
diff --git a/libstdc++-v3/src/concept-inst.cc b/libstdc++-v3/src/concept-inst.cc
index a467a810c81..01cc030da8d 100644
--- a/libstdc++-v3/src/concept-inst.cc
+++ b/libstdc++-v3/src/concept-inst.cc
@@ -1,6 +1,6 @@
// Concept checking instantiations -*- C++ -*-
-// Copyright (C) 2001 Free Software Foundation
+// Copyright (C) 2001, 2002 Free Software Foundation
//
// This file is part of GNU CC.
//
@@ -40,7 +40,6 @@
#ifdef _GLIBCPP_CONCEPT_CHECKS
#include <memory>
-#include <vector>
#include <ostream>
#define _Instantiate(...) template void __function_requires< __VA_ARGS__ > ()
@@ -49,36 +48,12 @@ namespace __gnu_cxx
{
template void __aux_require_boolean_expr<bool>(bool const&);
- _Instantiate(_BidirectionalIteratorConcept<
- __normal_iterator< std::locale::facet**,
- std::vector<std::locale::facet*,std::allocator<std::locale::facet*> > > > );
-
- _Instantiate(_BidirectionalIteratorConcept<
- __normal_iterator< unsigned*,
- std::vector<unsigned, std::allocator<unsigned> > > > );
-
- _Instantiate(_ConvertibleConcept<std::locale::facet*, std::locale::facet*> );
-
_Instantiate(_ConvertibleConcept<unsigned, unsigned> );
_Instantiate(_InputIteratorConcept<char*> );
_Instantiate(_InputIteratorConcept<char const*> );
- _Instantiate(_InputIteratorConcept<std::locale::facet**> );
-
- _Instantiate(_InputIteratorConcept<
- __normal_iterator< std::locale::facet* const*,
- std::vector<std::locale::facet*,std::allocator<std::locale::facet*> > > > );
-
- _Instantiate(_InputIteratorConcept<
- __normal_iterator< std::locale::facet**,
- std::vector<std::locale::facet*,std::allocator<std::locale::facet*> > > > );
-
- _Instantiate(_InputIteratorConcept<
- __normal_iterator< unsigned*,
- std::vector<unsigned, std::allocator<unsigned> > > > );
-
#ifdef _GLIBCPP_USE_WCHAR_T
_Instantiate(_InputIteratorConcept<wchar_t*> );
@@ -97,29 +72,6 @@ namespace __gnu_cxx
_Instantiate(_LessThanComparableConcept<unsigned> );
- _Instantiate(_Mutable_BidirectionalIteratorConcept<
- __normal_iterator< std::locale::facet**,
- std::vector<std::locale::facet*,std::allocator<std::locale::facet*> > > > );
-
- _Instantiate(_Mutable_BidirectionalIteratorConcept<
- __normal_iterator< unsigned*,
- std::vector<unsigned, std::allocator<unsigned> > > > );
-
- _Instantiate(_Mutable_ForwardIteratorConcept<
- __normal_iterator< std::locale::facet**,
- std::vector<std::locale::facet*,std::allocator<std::locale::facet*> > > > );
-
- _Instantiate(_OutputIteratorConcept<
- std::locale::facet**, std::locale::facet*> );
-
- _Instantiate(_OutputIteratorConcept<
- __normal_iterator< std::locale::facet**,
- std::vector<std::locale::facet*, std::allocator<std::locale::facet* > > >,
- std::locale::facet* > );
-
- _Instantiate(_OutputIteratorConcept<__normal_iterator<
- unsigned*, std::vector<unsigned, std::allocator<unsigned> > >, unsigned> );
-
_Instantiate(_OutputIteratorConcept<std::ostreambuf_iterator<
char, std::char_traits<char> >, char> );
@@ -153,7 +105,6 @@ namespace __gnu_cxx
_Instantiate(_RandomAccessIteratorConcept<wchar_t const*> );
#endif
-
} // namespace __gnu_cxx
#undef _Instantiate
diff --git a/libstdc++-v3/src/stl-inst.cc b/libstdc++-v3/src/stl-inst.cc
index 94d26b33d23..d8879a7bccd 100644
--- a/libstdc++-v3/src/stl-inst.cc
+++ b/libstdc++-v3/src/stl-inst.cc
@@ -33,21 +33,15 @@
#include <bits/c++config.h>
#include <memory>
-#include <vector>
namespace std
{
template class allocator<char>;
template class allocator<wchar_t>;
+#ifdef __USE_MALLOC
template class __malloc_alloc_template<0>;
-
-#ifndef __USE_MALLOC
+#else
template class __default_alloc_template<true, 0>;
#endif
-
- template
- void
- vector<unsigned int>::
- _M_insert_aux(vector<unsigned int>::iterator, unsigned int const &);
} // namespace std