Hi,
does anyone have an idea, why do I get the following error
(I have to use g++296 on RedHat Linux as compiler):
In file included from r_dir.cpp:9:
r_obey.h:262: declaration of
`const AreaSet &CObeyFile::AreaSet () const'
r_areaset.h:197: changes meaning of `AreaSet' from `class AreaSet'
The afore-mentioned line in r_obey.h is:
class CObeyFile
{
private:
AreaSet iAreaSet;
public:
const AreaSet& AreaSet() const; // line 262
And the line in r_areaset.h is:
class AreaSet
{ // line 197
public:
AreaSet();
~AreaSet();
Same code compiles fine with MS VC++.
Thank you for any hints!
Alex