2 ms·
Indeed! Just to write a class in C++ with a constructor and destructor which are not inlined, you have to repeat the class name about seven times: three times
by kazinator 12y ago
Indeed!
Just to write a class in C++ with a constructor and destructor which are not inlined, you have to repeat the class name about seven times: three times in the class declaration. Then four more times in the definitions of those two functions:
class verbose {
public:
verbose();
~verbose();
};
verbose::verbose()
{
}
verbose::~verbose()
{
}