mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-03 14:34:33 +02:00
Reconfigure lexical_cast to work wide character strings and VC++ when not using /Zc:wchar_t.
[SVN r30724]
This commit is contained in:
@@ -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 *>
|
||||||
|
Reference in New Issue
Block a user