From: Benjamin Kosnik Date: Fri, 19 Oct 2001 09:35:19 +0000 (+0000) Subject: locale_facets.h (__timepunct::_M_put_helper): Declare specializations for char, wchar_t. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ab8a33ed5890eea653aa364c5c31482a1e9c359;p=gcc.git locale_facets.h (__timepunct::_M_put_helper): Declare specializations for char, wchar_t. 2001-10-19 Benjamin Kosnik * include/bits/locale_facets.h (__timepunct::_M_put_helper): Declare specializations for char, wchar_t. From-SVN: r46346 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f4f0034b7fb..a26b390b336 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,9 +1,12 @@ +2001-10-19 Benjamin Kosnik + + * include/bits/locale_facets.h (__timepunct::_M_put_helper): + Declare specializations for char, wchar_t. + 2001-10-19 Andreas Jaeger * config/cpu/x86-64/bits/limits.h: New file. - * config/cpu/x86-64/bits/atomicity.h: New file. - * configure.target: Add x86-64. 2001-10-17 Phil Edwards diff --git a/libstdc++-v3/include/bits/locale_facets.h b/libstdc++-v3/include/bits/locale_facets.h index 11bf14b1f24..4beb713f8b8 100644 --- a/libstdc++-v3/include/bits/locale_facets.h +++ b/libstdc++-v3/include/bits/locale_facets.h @@ -1250,10 +1250,35 @@ namespace std template locale::id __timepunct<_CharT>::id; + // Specializations. template<> const char* __timepunct::_S_timezones[14]; + template<> + void + __timepunct::_M_initialize_timepunct(__c_locale __cloc); + + template<> + void + __timepunct::_M_put_helper(char*, size_t, const char*, + const tm*) const; + +#ifdef _GLIBCPP_USE_WCHAR_T + template<> + const wchar_t* + __timepunct::_S_timezones[14]; + + template<> + void + __timepunct::_M_initialize_timepunct(__c_locale __cloc); + + template<> + void + __timepunct::_M_put_helper(wchar_t*, size_t, const wchar_t*, + const tm*) const; +#endif + // Generic. template const _CharT* __timepunct<_CharT>::_S_timezones[14]; @@ -1271,20 +1296,6 @@ namespace std const tm*) const { } - template<> - void - __timepunct::_M_initialize_timepunct(__c_locale __cloc); - -#ifdef _GLIBCPP_USE_WCHAR_T - template<> - const wchar_t* - __timepunct::_S_timezones[14]; - - template<> - void - __timepunct::_M_initialize_timepunct(__c_locale __cloc); -#endif - template class time_get : public locale::facet, public time_base {