From: Tatsuro MATSUOKA <tmacchant2@yahoo.co.jp>
To: cygwin@cygwin.com
Subject: ambiguous overload for operator [] on Cygwin_X86-64
Date: Thu, 24 Apr 2014 03:15:00 -0000 [thread overview]
Message-ID: <510697.35308.qm@web101119.mail.kks.yahoo.co.jp> (raw)
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
next reply other threads:[~2014-04-24 3:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 3:15 Tatsuro MATSUOKA [this message]
2014-04-24 19:48 ` Yaakov (Cygwin/X)
2014-04-25 10:47 ` Tatsuro MATSUOKA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=510697.35308.qm@web101119.mail.kks.yahoo.co.jp \
--to=tmacchant2@yahoo.co.jp \
--cc=cygwin@cygwin.com \
--cc=matsuoka@nuce.nagoya-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).