4 ms·
You don't have to use virtual functions though. You can just use plain old data structures.
by bananaboy 9y ago
You don't have to use virtual functions though. You can just use plain old data structures.
- dryman 9y agoIf I use a strict subset of C++, probably will do. However, figuring out the subset of different C++ standards and implementation that doesn't include extra pointers is hard. I might need to re-implement some useful utilities like unique pointer and share pointers as well. Some fundamental data structure in C++ includes pointers as well, like short string optimization introduce extra pointers. With my poor C++ knowledge, I don't even know what are the other pointers are missing..