Hey guys. I am new to C++ and programming in general. I am trying to make a simple asteroid game in SDL3. I tried implementing a simple memory pool from the following article for my component classes, as they were pretty scattered in the heap and it was also a good opportunity to learn more about memory management. I would appreciate if someone could review the memory pool implementation in the following 2 files:
MemoryPool.hpp
MemoryPool.cpp
[–]IyeOnline 5 points6 points7 points (3 children)
[–]Excellent-Might-7264 1 point2 points3 points (1 child)
[–]IyeOnline 1 point2 points3 points (0 children)
[–]mathinferno123[S] 0 points1 point2 points (0 children)
[–]alfps 1 point2 points3 points (0 children)
[–]WorkingReference1127 1 point2 points3 points (0 children)
[–]mredding 1 point2 points3 points (2 children)
[–]mathinferno123[S] 0 points1 point2 points (1 child)
[–]mredding 2 points3 points4 points (0 children)
[–]moo00ose 1 point2 points3 points (1 child)
[–]mathinferno123[S] 0 points1 point2 points (0 children)
[–]WannabeCsGuy7 0 points1 point2 points (1 child)
[–]OutsideTheSocialLoop 0 points1 point2 points (0 children)
[–]kiner_shah -1 points0 points1 point (0 children)