You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/04/27 00:33:47 UTC
svn commit: r397323 - /incubator/stdcxx/trunk/tests/src/printf.cpp
Author: sebor
Date: Wed Apr 26 15:33:45 2006
New Revision: 397323
URL: http://svn.apache.org/viewcvs?rev=397323&view=rev
Log:
2006-04-26 Martin Sebor <se...@roguewave.com>
* printf.cpp (_rw_quotechar, _rw_fmtarray): Avoid instantiating
on wchar_t when the type is not a fundamental type (since it's
most likely not distinct from one of the types the templates
have already been instantiated on at this point).
Modified:
incubator/stdcxx/trunk/tests/src/printf.cpp
Modified: incubator/stdcxx/trunk/tests/src/printf.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/src/printf.cpp?rev=397323&r1=397322&r2=397323&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/printf.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/printf.cpp Wed Apr 26 15:33:45 2006
@@ -2129,12 +2129,15 @@
template int _rw_fmtarray (const FmtSpec&, Buffer&, const ULong*, size_t, int);
-# ifndef _RWSTD_NO_WCHAR_T
+# ifndef _RWSTD_NO_NATIVE_WCHAR_T
+// avoid instantiating when wchar_t is not a fundamental type
+// (since it's most likely not distinct from one of the types
+// the templates are instantiated on above)
template int _rw_quotechar (char*, wchar_t, int);
template int _rw_fmtarray(const FmtSpec&, Buffer&, const wchar_t*, size_t, int);
-# endif // _RWSTD_NO_WCHAR_T
+# endif // _RWSTD_NO_NATIVE_WCHAR_T
#endif // _RWSTD_NO_EXPLICIT_INSTANTIATION