diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 605286e7b6d..1212841430f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2001-03-22 Benjamin Kosnik + + * src/misc-inst.cc (__sink_unused_warning): Move to... + * src/locale-inst.cc (__sink_unused_warning): Move to... + * src/stl-inst.cc: Here. + * include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define, + commented it out. + 2001-03-21 Theodore Papadopoulo * intclude/bits/basic_file.h: Fix typos in comments. diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index 63c9762b9a3..7a086aa4f8b 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -65,6 +65,7 @@ // Concept-checking code is on by default unless users define // the _STL_NO_CONCEPT_CHECKS hook. +//#define _STL_NO_CONCEPT_CHECKS 1 #if !defined(_STL_NO_CONCEPT_CHECKS) # define __STL_USE_CONCEPT_CHECKS #endif diff --git a/libstdc++-v3/src/locale-inst.cc b/libstdc++-v3/src/locale-inst.cc index 554fab3f258..a2027281ac4 100644 --- a/libstdc++-v3/src/locale-inst.cc +++ b/libstdc++-v3/src/locale-inst.cc @@ -44,7 +44,6 @@ namespace std { - typedef ostreambuf_iterator > obuf_iterator; typedef istreambuf_iterator > ibuf_iterator; typedef ostreambuf_iterator > wobuf_iterator; @@ -286,9 +285,6 @@ namespace std #endif #endif // _GLIBCPP_USE_WCHAR_T - template - void __sink_unused_warning(locale::facet*); - template locale::facet** fill_n diff --git a/libstdc++-v3/src/misc-inst.cc b/libstdc++-v3/src/misc-inst.cc index 50d11abb440..3c3b9f1582e 100644 --- a/libstdc++-v3/src/misc-inst.cc +++ b/libstdc++-v3/src/misc-inst.cc @@ -241,26 +241,6 @@ namespace std (vector::const_iterator, vector::const_iterator, string*, _Bool); - template - void - __sink_unused_warning(char); -#ifdef _GLIBCPP_USE_WCHAR_T - template - void - __sink_unused_warning(wchar_t); -#endif - - template - void - __sink_unused_warning > - (ostreambuf_iterator); -#ifdef _GLIBCPP_USE_WCHAR_T - template - void - __sink_unused_warning > - (ostreambuf_iterator); -#endif - template void __pad_char(basic_ios&, char*, const char*, diff --git a/libstdc++-v3/src/stl-inst.cc b/libstdc++-v3/src/stl-inst.cc index 29337c02bbf..f5008c950dd 100644 --- a/libstdc++-v3/src/stl-inst.cc +++ b/libstdc++-v3/src/stl-inst.cc @@ -1,6 +1,6 @@ // Explicit instantiation file. -// Copyright (C) 1999 Free Software Foundation, Inc. +// Copyright (C) 1999, 2001 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 @@ -34,6 +34,7 @@ #include #include #include +#include namespace std { @@ -49,8 +50,27 @@ namespace std vector:: _M_insert_aux(vector::iterator, unsigned int const &); +#ifdef __STL_USE_CONCEPT_CHECKS template - void - __sink_unused_warning(unsigned int); + void __sink_unused_warning(unsigned int); + template + void __sink_unused_warning(locale::facet*); + + template + void __sink_unused_warning(char); + + template + void __sink_unused_warning > + (ostreambuf_iterator); + +# ifdef _GLIBCPP_USE_WCHAR_T + template + void __sink_unused_warning(wchar_t); + + template + void __sink_unused_warning > + (ostreambuf_iterator); +# endif +#endif } //std