Re: [Cppcms-users] feedback after testing cppcms svn trunk compiled with msvc2005
Brought to you by:
artyom-beilis
From: Cristian O. <one...@gm...> - 2011-01-21 10:57:15
|
Hi, I just find another small issue while trying to use #include <cppcms/json.h> in my application. In the "wonderful world" of msvc you can choose how wchar_t is interpreted by the compiler [1] so if "/Zc:wchar_t-" is used wchar_t is defined as "unsigned short" and not as a native type. In this case CPPCMS_JSON_SPECIALIZE_INT(wchar_t) and CPPCMS_JSON_SPECIALIZE_INT(unsigned short) will be one and the same and result in a compilation error which can be fixed by the attached patch. [1] http://msdn.microsoft.com/en-us/library/dh8che7s%28v=vs.80%29.aspx Regards, Cristian |