J
John Ratliff
I've been using g++ for a long time (and this is not a g++ question),
and I recently started using MSVC Express. Some of my programs that I
rebuilt with MSVC give me a warning I don't understand.
...\..\source\view\Frame.cc(46) : warning C4355: 'this' : used in base
member initializer list
The offending line:
Frame::Frame() : timer(this, ID_SBTIMER), sram(NULL),
ignoreTextEvents(true) {
Is it bad to use 'this' here? I've never had a problem with the binary
compiled either by g++ or MSVC, but is it wrong or dangerous in some way?
Thanks,
--John Ratliff
and I recently started using MSVC Express. Some of my programs that I
rebuilt with MSVC give me a warning I don't understand.
...\..\source\view\Frame.cc(46) : warning C4355: 'this' : used in base
member initializer list
The offending line:
Frame::Frame() : timer(this, ID_SBTIMER), sram(NULL),
ignoreTextEvents(true) {
Is it bad to use 'this' here? I've never had a problem with the binary
compiled either by g++ or MSVC, but is it wrong or dangerous in some way?
Thanks,
--John Ratliff