D
Daniel
I know, nobody likes this kind of question, but there aren't many questions these days, so ...
Consider a case of private virtual inheritance where the motivation is to have overloading on the preferred method name "value".
class base
{
public:
void value(int val)
{
// calls value_
}
void value(long val)
{
// calls value_
}
void value(long long val)
{
// calls value_
}
private:
virtual void value_(long long val) = 0;
};
class derived : public base
{
private:
// implements value_
};
Can anyone suggest a reasonable naming convention for the overridable private method value_? I've seen variants of "doValue", "value_long_long", and "value_event". Any commonly used conventions?
Thanks,
Daniel
Consider a case of private virtual inheritance where the motivation is to have overloading on the preferred method name "value".
class base
{
public:
void value(int val)
{
// calls value_
}
void value(long val)
{
// calls value_
}
void value(long long val)
{
// calls value_
}
private:
virtual void value_(long long val) = 0;
};
class derived : public base
{
private:
// implements value_
};
Can anyone suggest a reasonable naming convention for the overridable private method value_? I've seen variants of "doValue", "value_long_long", and "value_event". Any commonly used conventions?
Thanks,
Daniel