Skip to content

Assignment to perspectiveMatrix breaks const-correctness #370

@ajvp234

Description

@ajvp234

Hello,

I noticed three is a compile-time error when using the code at https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Engine_Architecture/03_component_systems.html#:~:text=glm%3A%3Amat4,projectionMatrix%3B%20%7D

Assigning to perspectiveMatrix breaks const-correctness here which results in a compile error. I think just removing const specifier on this method fixes the problem as I get no compile-time error. If it's correct and I'm wrong don't hesitate to say so, but please explain me why.

Best regards,

ajvp

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