Search ProofOfProgress Blog

Saturday, February 13, 2016

Invalid use of destructor foo as type



Bad Code:
~MyClass::MyClass(){

}

Good Code:
MyClass::~MyClass(){

}

2 comments:

  1. That was actually what i needed. Thanks. Keep posting!

    ReplyDelete
  2. I found one other way to get this error, which is to forget the ending () on the destructor declaration. Thanks for setting me on the right path!

    ReplyDelete