inside the lol_t class. Now everything compiles, but I get an error that says that "deleting void* is undefined"
Did I set up the deconstructor properly?
And to call it I would use delete (lol_t variable name here) right?
It's what the error says. You can't delete a pointer to void because void has no size. How many bytes is the compiler supposed to free? 1? 2? 4?
You need to cast the pointer to something before you can delete it. Since you created it as an int, you should cast to int *.