a question about syntax of declaration with inheritance...

S

SpreadTooThin

If this is the implementation of the method in the cpp file:

dbgBuf(std::streambuf* output_buffer) : buffer(output_buffer),
at_start(true), level(0), log_on(true)
{
}

What should the declaration of the method look like in the header file?
 
V

Victor Bazarov

SpreadTooThin said:
If this is the implementation of the method in the cpp file:

dbgBuf(std::streambuf* output_buffer) : buffer(output_buffer),
at_start(true), level(0), log_on(true)
{
}

What should the declaration of the method look like in the header
file?

Judging by the presence of what looks like an initialiser list,
it should be a constructor. But the name of this function is not
proper, it lacks the class name, so it can't be an out-of-class
definition of a member. Any out-of-class definition has the
qualified name form (blah::foo or damnit::bar).

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top