I got into this post while looking for the reason why Box2D is not using namespaces.
It says namespaces are not used because some poor compilers don't support it.
I'm wondering:
I noticed that things like templates and operator overloading are used: is there really any C++ compiler supporting such stuff and not supporting templates?
Moreover I noticed that a namespace (std) is actually used (thus breaking this convention) twice: in Collision/b2BroadPhase.h at line 188 and in Common/b2Math.h at line 39.
PS/Disclaimer:
Any time I post something in this section I feel like I'm here to insult Erin or his work.
I hope not to be seen like this: I appreciate a lot Box2D and love Erin for it. What I'm trying to do here is to give suggestion to improve Box2D and/or trying to understand its structure. If any feature I suggest gets rejected even without any valid reason that's fine, of course.
I really am sorry if I do result pedantic and annoying.
It says namespaces are not used because some poor compilers don't support it.
I'm wondering:
- which C++ features are cut out because of this reason?
- which C++ compilers (or what versions of what C++ compilers) are supported/taken-into-account by Box2D?
I noticed that things like templates and operator overloading are used: is there really any C++ compiler supporting such stuff and not supporting templates?
Moreover I noticed that a namespace (std) is actually used (thus breaking this convention) twice: in Collision/b2BroadPhase.h at line 188 and in Common/b2Math.h at line 39.
PS/Disclaimer:
Any time I post something in this section I feel like I'm here to insult Erin or his work.
I hope not to be seen like this: I appreciate a lot Box2D and love Erin for it. What I'm trying to do here is to give suggestion to improve Box2D and/or trying to understand its structure. If any feature I suggest gets rejected even without any valid reason that's fine, of course.
I really am sorry if I do result pedantic and annoying.