stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r292337 - /incubator/stdcxx/trunk/src/time_put.cpp
Date Wed, 28 Sep 2005 22:27:28 GMT
Author: sebor
Date: Wed Sep 28 15:27:24 2005
New Revision: 292337

URL: http://svn.apache.org/viewcvs?rev=292337&view=rev
Log:
2005-09-28  Martin Sebor  <sebor@roguewave.com>

	STDCXX-22
	* time_put.cpp (__rw_put_time): Changed from a function template
	and its two specializations to overloads of an ordinary function
	to prevent an SGI MIPSpro 7.41 ICE.

Modified:
    incubator/stdcxx/trunk/src/time_put.cpp

Modified: incubator/stdcxx/trunk/src/time_put.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/src/time_put.cpp?rev=292337&r1=292336&r2=292337&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/time_put.cpp (original)
+++ incubator/stdcxx/trunk/src/time_put.cpp Wed Sep 28 15:27:24 2005
@@ -122,25 +122,22 @@
 __rw_get_timepunct (const _RW::__rw_facet*, int,
                     const void*[], const _RWSTD_SIZE_T []);
 
-template <class _CharT>
-_CharT* __rw_put_time (const __rw_facet*, _CharT*, _RWSTD_SIZE_T,
-                       _STD::ios_base&, _CharT, const tm*,
-                       char, char, int, int);
-
-_RWSTD_SPECIALIZED_FUNCTION
-char* __rw_put_time (const __rw_facet*, char*, _RWSTD_SIZE_T,
-                     _STD::ios_base&, char, const tm*,
-                     char, char, int, int);
+static char*
+__rw_put_time (const __rw_facet*, char*, _RWSTD_SIZE_T,
+               _STD::ios_base&, char, const tm*,
+               char, char, int, int);
+
 
 #ifndef _RWSTD_NO_WCHAR_T
 
-_RWSTD_SPECIALIZED_FUNCTION
-wchar_t* __rw_put_time (const __rw_facet*, wchar_t*, _RWSTD_SIZE_T,
-                        _STD::ios_base&, wchar_t, const tm*,
-                        char, char, int, int);
+static wchar_t*
+__rw_put_time (const __rw_facet*, wchar_t*, _RWSTD_SIZE_T,
+               _STD::ios_base&, wchar_t, const tm*,
+               char, char, int, int);
 
 #endif   // _RWSTD_NO_WCHAR_T
 
+
 /***************************************************************************/
 
 
@@ -2022,7 +2019,7 @@
 static void
 __rw_get_time_put_data (__rw_time_put_data &tpd,
                         const __rw_facet   *facet,
-                        const tm           *tmb,
+                        const tm *tmb,
                         char fmt, char mod, bool wide)
 {
     _RWSTD_ASSERT (0 != facet);
@@ -2570,8 +2567,7 @@
 }
 
 
-_RWSTD_SPECIALIZED_FUNCTION
-char*
+static char*
 __rw_put_time (const __rw_facet *facet, char *buf, _RWSTD_SIZE_T bufsize,
                _STD::ios_base &flags, char fill, const tm *tmb,
                char fmt, char mod, int width, int prec)
@@ -2673,8 +2669,7 @@
 
 #ifndef _RWSTD_NO_WCHAR_T
 
-_RWSTD_SPECIALIZED_FUNCTION
-wchar_t*
+static wchar_t*
 __rw_put_time (const __rw_facet *facet, wchar_t *wbuf, _RWSTD_SIZE_T bufsize,
                _STD::ios_base &flags, wchar_t fill, const tm *tmb,
                char fmt, char mod, int width, int prec)



Mime
View raw message