Converting from FreeBasic (gcc) to c++11 (g++) has gone well, even though c++ feels like a step down
There's just so many annoying things, like the increasingly annoying switch case restrictions, string building, you name it, and god forgive me, old Ansi-C skeletons like || && and yes ^, which is the exponent symbol.
But, now that I've calmed down, let's just say c++ has many nice things too.. for what it's worth
Unfortunately I've gotten myself stuck abit:
In my .hpp file:
..
class Bitmap;
struct voxelmodel_t;
typedef unsigned short block_t;
..
This means, I'm saying there is a class Bitmap, there is a struct blablah etc
Why on earth can't i say: class engine::Bitmap?
The actual problem though:
instantiating Bitmap inside the .cpp now causes the compiler to become confuzzled, since after all,
there's now two Bitmap's, one ::Bitmap, and another engine::Bitmap
So, if i wrote engine::Bitmap there, it will easily refuse me to continue programming, since the two are after all, different!
What do you guys usually do about this?
thanks
only 21k LOC left to convert!