This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ambiguous overload for operator [] on Cygwin_X86-64


Hello

I tried to build wxWidgets-3.0.0 on Cygwin.
For Cygwin x86, the build was successful.

However, on Cygwin x86_64, the build failed at compling a cpp source file (src/common/appbase.cpp).

./include/wx/filename.h: In static member function 'static wxUniChar wxFileName::GetPathSeparator(wxPathFormat)':
./include/wx/filename.h:473:43: error: ambiguous overload for 'operator[]' (operand types are 'wxString' and 'unsigned int')
         { return GetPathSeparators(format)[0u]; }

The code "(format)[0u]" seemed to be accepted g++-4.8.2 on Cygwin x86_64.
What the difference of g++ between that of  Cygwin x86 and that of Cygwin x86_64?

Regards

Tatsuro

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]