From: John Love-Jensen <eljay@adobe.com>
To: Phy Prabab <phyprabab@gmail.com>, MSX to GCC <gcc-help@gcc.gnu.org>
Subject: Re: Copy Constructor w/gcc411
Date: Fri, 09 Feb 2007 12:01:00 -0000 [thread overview]
Message-ID: <C1F1BB7E.1C3BB%eljay@adobe.com> (raw)
In-Reply-To: <2fe399760702090130g5f954813n64645fdac03dcfc3@mail.gmail.com>
Hi Phy,
> What am I doing wrong WRT gcc411?
You are doing nothing wrong WRT gcc411.
What you are doing is wrong WRT C++.
C++ requires accessibility of the copy constructor for the temporary, even
though the copy constructor was eliminated.
You can work around that issue by making a named variable and passing in the
named variable to the function.
HTH,
--Eljay
prev parent reply other threads:[~2007-02-09 11:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-09 9:37 Phy Prabab
2007-02-09 12:01 ` John Love-Jensen [this message]
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=C1F1BB7E.1C3BB%eljay@adobe.com \
--to=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
--cc=phyprabab@gmail.com \
/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).