Fixed up traits classes so that no matter whether /Zc:wchar_t is specified for vc builds or not, then we can still link to the same lib build.

[SVN r20764]
This commit is contained in:
John Maddock
2003-11-08 13:02:55 +00:00
parent 8324fad77c
commit f9d0907868
3 changed files with 482 additions and 76 deletions

View File

@ -184,6 +184,21 @@ using std::distance;
# define BOOST_REGEX_NO_W32
#endif
/*****************************************************************************
*
* Wide character workarounds:
*
****************************************************************************/
#ifdef __cplusplus
#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) && !defined(BOOST_REGEX_NO_LIB)
# define BOOST_REGEX_HAS_SHORT_WCHAR_T
namespace boost{ typedef __wchar_t regex_wchar_type; }
#else
namespace boost{ typedef wchar_t regex_wchar_type; }
#endif
#endif
/*****************************************************************************
*