Re:Writing a Memory Allocator for Fast Serialization
by bananaboy on Tuesday July 04, 2017 @12:12AM
(#14693500)
You don't have to use virtual functions though. You can just use plain old data structures.
[ Parent
| on HN ]
Re:Writing a Memory Allocator for Fast Serialization
by dryman on Tuesday July 04, 2017 @12:32AM
(#14693562)
If 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..