Reconfigure lexical_cast to work wide character strings and VC++ when not using /Zc:wchar_t.

[SVN r30724]
This commit is contained in:
John Maddock
2005-08-29 12:44:09 +00:00
parent f587f50366
commit cb041dd66c

View File

@@ -30,8 +30,7 @@
#if defined(BOOST_NO_STRINGSTREAM) || \ #if defined(BOOST_NO_STRINGSTREAM) || \
defined(BOOST_NO_STD_WSTRING) || \ defined(BOOST_NO_STD_WSTRING) || \
defined(BOOST_NO_STD_LOCALE) || \ defined(BOOST_NO_STD_LOCALE)
defined(BOOST_NO_INTRINSIC_WCHAR_T)
#define DISABLE_WIDE_CHAR_SUPPORT #define DISABLE_WIDE_CHAR_SUPPORT
#endif #endif
@@ -81,11 +80,13 @@ namespace boost
}; };
#ifndef DISABLE_WIDE_CHAR_SUPPORT #ifndef DISABLE_WIDE_CHAR_SUPPORT
#if !defined(BOOST_NO_INTRINSIC_WCHAR_T)
template<> template<>
struct stream_char<wchar_t> struct stream_char<wchar_t>
{ {
typedef wchar_t type; typedef wchar_t type;
}; };
#endif
template<> template<>
struct stream_char<wchar_t *> struct stream_char<wchar_t *>