E
earthwormgaz
I'm trying to compile Log4cpp on Solaris with Suncc. In it, you've
got ...
class Catagory {
public:
virtual bool ownsAppender(Appender* appender) const throw();
private:
virtual bool ownsAppender(Appender* appender,
OwnsAppenderMap::iterator& i2) throw();
};
class LOG4CPP_EXPORT FixedContextCategory : public Category {
public:
virtual bool ownsAppender(Appender* appender) const throw();
};
With that, Suncc complains that ...
Compiling Libs/log4cpp/FixedContextCategory.cpp
"./Libs/log4cpp/log4cpp/FixedContextCategory.hh", line 171: Warning:
log4cpp::FixedContextCategory:
wnsAppender hides the virtual function
log4cpp::Category:
wnsAppender(log4cpp::Appender*,
__rwstd::__rb_tree<log4cpp::Appender*,
std:
air<log4cpp::Appender*const, bool>,
__rwstd::__select1st<std:
air<log4cpp::Appender*const, bool>,
log4cpp::Appender*>, std::less<log4cpp::Appender*>,
std::allocator<std:
air<log4cpp::Appender*const, bool>>>::iterator&).
I thought I had the solution in adding this to the sub class ...
using Category:
wnsAppender; // add base-class functions to
overload set
That led to an error about the private overload in the base class
being inaccessible though. What can I do to get rid of the warning and
the error?
Many thanks,
Gaz
got ...
class Catagory {
public:
virtual bool ownsAppender(Appender* appender) const throw();
private:
virtual bool ownsAppender(Appender* appender,
OwnsAppenderMap::iterator& i2) throw();
};
class LOG4CPP_EXPORT FixedContextCategory : public Category {
public:
virtual bool ownsAppender(Appender* appender) const throw();
};
With that, Suncc complains that ...
Compiling Libs/log4cpp/FixedContextCategory.cpp
"./Libs/log4cpp/log4cpp/FixedContextCategory.hh", line 171: Warning:
log4cpp::FixedContextCategory:
log4cpp::Category:
__rwstd::__rb_tree<log4cpp::Appender*,
std:
__rwstd::__select1st<std:
log4cpp::Appender*>, std::less<log4cpp::Appender*>,
std::allocator<std:
I thought I had the solution in adding this to the sub class ...
using Category:
overload set
That led to an error about the private overload in the base class
being inaccessible though. What can I do to get rid of the warning and
the error?
Many thanks,
Gaz