Suppose I have a very long namespace, which I don't want to type in all the time. But I don't want to use using namespace ...
either. Can I use #define for this?
Example:
#define glm::quat glm::gtc::quaternion
class Camera
{
protected:
glm::quat m_mRotation;
};
I don't want to use the using, because the glm:: part will be gone as well, I think. So I would like to keep the glm part, but not the totally long gtc::quaternion part. When I try this now, I get the following error:
Error 1 error C2008: ':' : unexpected in macro definition