Deimos
Your code looks perfectly reasonable as a use of templates and classes to generalize the code and give it a nicer interface than straight C.
There’s really no other magic C++ or the standard libraries have that you’re missing out on.
Most games are written in C with some C++ features and almost never using the standard libraries.
Tools can blur the line and use the standard libraries where tightly controlling performance and resources are less important.
You’ll hear a lot of dogma about how you are supposed to use C++ but you can safely ignore all that and just use what features are actually helpful as you already have!
|