I´m dusting of my old engine code that I haven´t worked on for a while. I haven´t worked on it for some years now and last time I worked on it I have been working on linux. My C++ is a bit rusty too.
I have been setting it up to build in visual studio now. Previously I was only building it for 32 bit. Trying to build it with 64 bit I get issues where I use std containers and return size() where size_t is 64bit and the code is set up with 32 bit integers.
I don´t use size_t in my code I have my own data types I32, U32, I64, U64 and so on.. I don´t want to use more memory so I want to still use 32 bit. I could wrap all my size() functions in a static_cast I guess, but that seems a bit messy too.
How do others solve this?