On 5 August 2014 22:36, Benjamin Beier <[email protected]> wrote:

> If you would move your typedefs inside the 'osg' namespace each framework
> would prioritize their own definitions correctly.
>

OSG typedefs ARE inside OSG namespaces.  Be clear, it's only GL fallback
typedef's that are kept in the global namespace, as per OpenGL headers.

Moving the GL fallback typedefs into OSG namespaces would require those
typedefs to be used with an OSG namespace or to force end users to use
using namespace, which when you are mixing lots of namespaces is not
recommend.

For existing users if we did put the GL fallback typedefs into an OSG
namespace then their code would have to account for fallback typedef's
being used and add the OSG namespace for those instances rather than
standard GL typedef's.  Since GL headers can change from platform to
platform when and where fallback typedef's are used is not consistent so
you would be pushing a problem onto users.

I'm not about risking breakong end user code on whim to appease one user
that happened to have an issue with a 3rd party library, that was easily
resolved anyway.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to