aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/stringfwd.h
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2002-11-01 17:30:36 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2002-11-01 17:30:36 +0000
commit5112ae3a8f702def5e49b7944e069e9b0b0444b6 (patch)
tree3b85fbd786ad6d529a86b3867a81119c182c2daa /libstdc++-v3/include/bits/stringfwd.h
parentc86c54e6d12b84a346c77e7101c758c78555c1f3 (diff)
downloadgcc-5112ae3a8f702def5e49b7944e069e9b0b0444b6.zip
gcc-5112ae3a8f702def5e49b7944e069e9b0b0444b6.tar.gz
gcc-5112ae3a8f702def5e49b7944e069e9b0b0444b6.tar.bz2
re PR libstdc++/8318 (Not all wide character based prototypes are included within #ifdef _GLIBCPP_USE_WCHAR_T)
2002-11-01 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/8318 * include/std/std_iostream.h: Tweak. * include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T. * include/std/std_iomanip.h: Same. * include/bits/stringfwd.h: Same. * include/bits/basic_string.tcc: Same. * include/bits/sstream.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/basic_ios.tcc: Same. * include/bits/streambuf.tcc: Same. * include/bits/locale_facets.tcc: Same. From-SVN: r58720
Diffstat (limited to 'libstdc++-v3/include/bits/stringfwd.h')
-rw-r--r--libstdc++-v3/include/bits/stringfwd.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libstdc++-v3/include/bits/stringfwd.h b/libstdc++-v3/include/bits/stringfwd.h
index 07b1009..db40bef 100644
--- a/libstdc++-v3/include/bits/stringfwd.h
+++ b/libstdc++-v3/include/bits/stringfwd.h
@@ -45,25 +45,25 @@
namespace std
{
- template<class _CharT>
- struct char_traits;
-
- template<> struct char_traits<char>;
-#ifdef _GLIBCPP_USE_WCHAR_T
- template<> struct char_traits<wchar_t>;
-#endif
-
template<typename _Alloc>
class allocator;
+ template<class _CharT>
+ struct char_traits;
+
template<typename _CharT, typename _Traits = char_traits<_CharT>,
typename _Alloc = allocator<_CharT> >
class basic_string;
+
+ template<> struct char_traits<char>;
- /// 99%% of %string users only ever [need to] see the typedef.
typedef basic_string<char> string;
- /// 99%% of %wstring users only ever [need to] see the typedef.
+
+#ifdef _GLIBCPP_USE_WCHAR_T
+ template<> struct char_traits<wchar_t>;
+
typedef basic_string<wchar_t> wstring;
+#endif
} // namespace std
#endif // _CPP_BITS_STRINGFWD_H