summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/string-inst.cc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2002-02-16 00:19:13 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2002-02-16 00:19:13 +0000
commita32e3c097ece9d1f02ec88b9c4a64aa62522c0a8 (patch)
tree3ce77f3b8272c41aa4b08f4fb58573bdab29ffee /libstdc++-v3/src/string-inst.cc
parent13e58269a61bc02a73910439915e95352af9a56d (diff)
downloadgcc-a32e3c097ece9d1f02ec88b9c4a64aa62522c0a8.tar.gz
Tune for size.
2002-02-15 Benjamin Kosnik <bkoz@redhat.com> Tune for size. * src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant explicit instantiation. (string::_Rep::_S_max_size): Same. * include/bits/basic_string.tcc: Add extern explicit instantiations for string, wstring. * include/bits/basic_ios.tcc: Add extern explicit instantiations for ios, wios. * include/bits/streambuf.tcc: Same, for streambuf, wstreambuf. * include/bits/istream.tcc: Same, for istream, wistream. * include/bits/ostream.tcc: Same for ostream, wostream, iostream, wiostream. * include/bits/sstream.tcc: Same, for stringbuf, wstringbuf, istringstream, wistringstream, ostringstream, wostringstream, stringstream, wstringstream. * include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream, wifstream, ofstream, wofstream, fstream, wfstream. * src/misc-inst.cc: Correct comments. Add iomanip instantiations for wide streams. * include/std/std_iomanip.h: Same. * include/bits/locale_facets.tcc: Same. * include/std/std_streambuf.h: Correct _GLIBCPP_FULLY_COMPLIANT_HEADERS guard. * include/std/std_sstream.h: Same. * include/std/std_ostream.h: Same. * include/std/std_istream.h: Same. * include/std/std_fstream.h: Same. * include/std/std_streambuf.h: Add definitions for private copy ctor and assignment operator. * include/std/std_istream.h: Remove declared but undefined copy ctor and assignment operator. This is taken care of in ios_base, so adding it in the derived class as well is superfluous. * include/std/std_ostream.h: Same. * include/bits/basic_ios.h (basic_ios::clear): Don't inline. * include/bits/basic_ios.tcc (basic_ios::clear): Move definition here. From-SVN: r49798
Diffstat (limited to 'libstdc++-v3/src/string-inst.cc')
-rw-r--r--libstdc++-v3/src/string-inst.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/src/string-inst.cc b/libstdc++-v3/src/string-inst.cc
index 4da060fefb2..7ebc0c5abd3 100644
--- a/libstdc++-v3/src/string-inst.cc
+++ b/libstdc++-v3/src/string-inst.cc
@@ -1,6 +1,7 @@
// Components for manipulating sequences of characters -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+// 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
@@ -45,9 +46,6 @@ namespace std
typedef basic_string<C> S;
template class basic_string<C>;
- template const C S::_Rep::_S_terminal;
- template S::size_type S::_Rep::_S_max_size;
-
template S operator+(const C*, const S&);
template S operator+(C, const S&);
template bool operator==(const S::iterator&, const S::iterator&);