From: "Francois Coulon" <francois.coulon@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: public method hidden by protected one
Date: Mon, 26 Nov 2007 11:42:00 -0000 [thread overview]
Message-ID: <5826f8920711260151v894cf7dp7104763a9daf97a8@mail.gmail.com> (raw)
We have thos two declarations in a class :
public:
const DonneesCP & getDonneesCP() const ;
protected:
DonneesCP &getDonneesCP();
We try to call the public one from outside the class, we have this error :
/vobs/ERATO/SMET/SAD/PUB/Linux-x86_64/include/DonneesCP/InterfaceDonneesCP.hpp:320:
error: « erato::DonneesCP& erato::InterfaceDonneesCP::getDonneesCP() »
is protected
/vobs/ERATO/APP/OTDA/TUFA/src/TUFA/tuf.cpp:117: error: within this context
If we remove the protected method, the error dissappears.
Is this normal behaviour or not ?
Thanks in advance
next reply other threads:[~2007-11-26 9:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 11:42 Francois Coulon [this message]
2007-11-26 12:48 ` John Love-Jensen
2007-11-26 13:12 ` Francois Coulon
2007-11-26 16:00 ` John Love-Jensen
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=5826f8920711260151v894cf7dp7104763a9daf97a8@mail.gmail.com \
--to=francois.coulon@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/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).