[C++-sig] std::wstring argument troubles ?
Nicolas Lelong
nico_ml at mgdesign.org
Wed Jun 8 16:39:21 CEST 2005
Hm, obsiouvly I missed something obvious ... :}
For the records, the problem was that I compiled boost.python lib with BJam
(which I did not do before) with vc-7_1 toolset, and BJam activates the VC
'treat wchar_t as Build-in Type' (/Zc:wchar_t) whereas my extension modules
were not using this option. Hence, the registered builtin type converter was
refering to std::wstring as std::basic_string<wchar_t, ...> and my module to
std::basic_string<unsigned short, ...>
So one have to make sure that the boost.python lib and his modules are
consistent in wchar_t compilation...
Sorry for the time lost,
Regards,
Nicolas.
More information about the Cplusplus-sig
mailing list