Boost C++ Libraries: Ticket #333: incorrect conditions to #define DISABLE_WIDE_CHAR_SUPPORT https://svn.boost.org/trac10/ticket/333 <pre class="wiki">I think absence of BOOST_NO_INTRINSIC_WCHAR_T isn't a requirement for DISABLE_WIDE_CHAR_SUPPORT definition. Suggested fix: //old code #if defined(BOOST_NO_STRINGSTREAM) || \ defined(BOOST_NO_STD_WSTRING) || \ defined(BOOST_NO_STD_LOCALE) || \ defined(BOOST_NO_INTRINSIC_WCHAR_T) #define DISABLE_WIDE_CHAR_SUPPORT #endif //new code #if defined(BOOST_NO_STRINGSTREAM) || \ defined(BOOST_NO_STD_WSTRING) || \ defined(BOOST_NO_STD_LOCALE) #define DISABLE_WIDE_CHAR_SUPPORT #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/333 Trac 1.4.3 kevlin Fri, 17 Dec 2004 11:28:19 GMT status changed https://svn.boost.org/trac10/ticket/333#comment:1 https://svn.boost.org/trac10/ticket/333#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=32864 This is not a defect. Unless wchar_t is supported properly as an intrinsic type, it cannot be differentiated from the corresponding integer type, leading incorrectly to a numeric rather than a textual conversion. </pre> Ticket seza Fri, 17 Dec 2004 11:38:21 GMT <link>https://svn.boost.org/trac10/ticket/333#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/333#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=1134968 The following construction doesn't work in vc++ 7.1 now without /Zc:wchar_t (Treat wchar_t as a built-in type): int num = ...; boost::lexical_cast&lt;std::wstring&gt;(num); I agree with your argument but this statement should work in this case IMHO. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>kevlin</dc:creator> <pubDate>Sat, 08 Jan 2005 17:11:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/333#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/333#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=32864 The behaviour of a basic_string&lt;wchar_t&gt; will depend in turn on what wchar_t is. Having conversions for wstring supported when conversions for wchar_t is not a distinct type would be inconsistent and would rely on more than can be guaranteed about the interaction between a non-standard I/O stream and non-standard basic_string implementation. </pre> </description> <category>Ticket</category> </item> </channel> </rss>