Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
32535
#include <string> struct baseA { std::string junk; //virtual ~baseA() {} // decomment to avoid crash }; struct baseB { int junk; //virtual ~baseB() {} // decomment to avoid crash }; struct child : public baseA, public baseB { }; int main() { baseB* instance = new child{}; delete instance; }
run
|
edit
|
history
|
help
0
printAllPathsInMatrix
Scope guarding
BinSearch
Dijkastra
UB mutex lock
break.cpp
Undefined behavior
How to access member function of a class using scope
Projekt misker
Test 12(2020)