[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] patch: compilation fix for wx 2.9
From: |
Vaclav Slavik |
Subject: |
Re: [lmi] patch: compilation fix for wx 2.9 |
Date: |
Wed, 30 Dec 2009 11:13:49 +0100 |
Hi,
On Wed, 2009-12-30 at 00:43 +0100, Vadim Zeitlin wrote:
> It fixes compilation of this code with wxWidgets 2.9 as without it an
> ambiguity arises when passing wxCStrData, which is the proxy object
> convertible to both "const char*" and "const wchar_t*" returned by
> wxString::c_str(), to std::ifstream ctor which is overloaded for both
> narrow and wide string types.
This is a Microsoftism -- Visual C++ has overloaded ctor, but the
standard only defines the const char* one (see 27.8.1.5).
We had this issue with VC++ before, in other document classes, and
solved it by using mb_str() (see rev. dcfcd9 in your git repo).
Regards,
Vaclav