help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: operator<< and namespace


From: Kyle
Subject: Re: operator<< and namespace
Date: Wed, 19 Oct 2005 18:23:13 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

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 ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]