Skip to content

glm/gtx/hash.hpp triggers C2760 syntax error with MSVC #1380

@Gpinchon

Description

@Gpinchon

When trying to use hash.hpp with glm v1.0.1 and Visual Studio Build Tools 2022 v17.14.5 I get these errors:

  • glm\gtx\dual_quaternion.inl(266,16): error C2187: syntax error: 'r' was unexpected here
  • glm\gtx\dual_quaternion.inl(266,3): error C2760: syntax error: '<id-expr>' was unexpected here; expected 'declaration'
  • glm\gtx\dual_quaternion.inl(266,17): error C3878: syntax error: unexpected token '.' following 'simple-declaration'

It seems to be coming from mat3x4_cast which I don't use (so there really is no reason for the compiler to instantiate it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions