🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #833

Re: operator<< and namespace

#833
From: Kyle
Date: Wed, 19 Oct 2005 16:23
25 lines
1849 bytes
Al-Burak wrote:
> Correction
> I accidentally forgot to add the name of the namespace
> 
> --------- strtools.hpp
> namespace jme{
> calss strtools{
>    std::string str;
>    ........
> 
> };
> }
> 
> --------- name.hpp
> namespace jme{
> class Name : public jme::strtools{
>     ....
>     // This only gives you an idea as to what the f'tions do
>     const std::string& getNameStr() const{return str;}

str is a private member of class strtools, therefore it is inaccesible 
in class Name ... give code that compiles

as for the error. are you sure you fed all files necesary to the 
compiler/linker ?
Technical Details
Message-ID: <dj5rtj$95c$1@atlantis.news.tpi.pl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <1129731313.976379.198160@g49g2000cwa.googlegroups.com> <m27jc94izy.fsf@madbox2.local> <1129737626.090999.134650@g49g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114592,beb845dd377bccf0
X-Google-Thread: 10ba33,beb845dd377bccf0
X-Google-Attributes: gid114592,gid10ba33,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Kyle <invalid@email.com>
Newsgroups: alt.comp.lang.learn.c-c++,gnu.g++.help
Subject: Re: operator<< and namespace
Date: Wed, 19 Oct 2005 18:23:13 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 25
Message-ID: <dj5rtj$95c$1@atlantis.news.tpi.pl>
References: <1129731313.976379.198160@g49g2000cwa.googlegroups.com>   <m27jc94izy.fsf@madbox2.local> <1129737626.090999.134650@g49g2000cwa.googlegroups.com>
NNTP-Posting-Host: aiw51.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: atlantis.news.tpi.pl 1129738995 9388 83.25.230.51 (19 Oct 2005 16:23:15 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 19 Oct 2005 16:23:15 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
X-Accept-Language: en-us, en
In-Reply-To: <1129737626.090999.134650@g49g2000cwa.googlegroups.com>