[ wxwindows-Bugs-1906346 ] wxFileName fails under Fedora 8 x86_64

SourceForge.net noreply at sourceforge.net
Mon Mar 3 07:54:37 PST 2008


Bugs item #1906346, was opened at 2008-03-03 16:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1906346&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxGTK specific
Group: Trivial
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: cdron77 (cdron77)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxFileName fails under Fedora 8 x86_64

Initial Comment:
I encounter a build failure under Fedora 8 x86_64, I encounter this error within wx/filename.h:

/usr/include/wx-2.8/wx/filename.h: In static member function ‘static
wxChar wxFileName::GetPathSeparator(wxPathFormat)’:
/usr/include/wx-2.8/wx/filename.h:393: error: ambiguous overload for
‘operator[]’ in ‘wxFileName::GetPathSeparators(wxPathFormat)()[0u]’
/usr/include/wx-2.8/wx/filename.h:393: note: candidates are:
operator[](const wxChar*, long int) <built-in>
/usr/include/wx-2.8/wx/string.h:822: note:                 wxChar&
wxString::operator[](int)
/usr/include/wx-2.8/wx/string.h:824: note:                 wxChar&
wxString::operator[](size_t) 

This is simply an ambiguity, which is simply patched by explicit cast of [0u] to [(size_t)0u]. 

My wx version is 2.8.4, but the code is equal still in 2.8.7.

This bug is also documented here:
http://groups.google.com/group/hugin-ptx/browse_thread/thread/f911e99b8fb6e292

CD-RON77



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1906346&group_id=9863




More information about the wx-dev mailing list