g-truc / glm

OpenGL Mathematics (GLM)
https://glm.g-truc.net
Other
9.31k stars 2.13k forks source link

C++11 not activated by default with g++ -std=c++11 #62

Closed rtbo closed 11 years ago

rtbo commented 11 years ago

This can be achieved by testing for __cplusplus macro in setup.hpp.

from http://gcc.gnu.org/gcc-4.7/changes.html : "G++ now sets the predefined macro __cplusplus to the correct value, 199711L for C++98/03, and 201103L for C++11"

The workaround is to define GLM_FORCE_CXX11

Groovounet commented 11 years ago

This issue is now fixed in GLM 0.9.4 for the upcoming release.

Thanks for contributing!! Christophe