The exact warning I get is
warning C4715: \'hand::show\' : not all control paths return a value
and hand::show is
std::ostr
To get rid of the warning, replace the second if with an else:
if
else
std::ostream& hand::show(std::ostream& os) const { if(side == left) { return os<