Hi,
A bit late to the party - but here goes:
There is a simple solution : add
using BaseItem::str;
to the public section of DerivedItem, like this
class DerivedItem : public BaseItem
{
private:
std::string strC;
public:
using BaseItem::str;
void str( std::string s ) { strC = s; }
};
This will expose all definitions of
str
from
BaseItem
, regardless of signature, from
DerivedItem
.
Best regards
Espen Harlinn