Skip to content

double definition of is_int in c++11 mode (g++) #107

@KillianDS

Description

@KillianDS

I got following error with C++11 mode on gcc 4.8 (I used latest version):
third_party/include/glm/core/type_int.hpp:207:10: error: redefinition of 'struct glm::detail::is_int<long int>' struct is_int<T> \ ^ third_party/include/glm/core/type_int.hpp:220:2: note: in expansion of macro 'GLM_DETAIL_IS_INT' GLM_DETAIL_IS_INT(highp_int_t); ^ compilation terminated due to -Wfatal-errors.

I have a fix, but I'm not sure if it's the best possible one as I don't know enough of glm's internal typing system. https://github.com/KillianDS/glm/commit/173928ca8a8622798f557f334c9b606e0be22590 (That branch also includes a fix for an issue I had with clang).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions