Skip to content

feature suggestion: constexpr vector operators #3605

@ribbon-otter

Description

@ribbon-otter

It would be nice to be able to do Ogre::Vector3 math in a constexpr context, like

    constexpr Vector3 half_map_size = map_size / 2;

For my set up (c++23 and gcc), the following already works.

   constexpr Vector3 map_size = Vector3(10,10,10); 

I would be interested in trying my hand at this, but I thought I suggest it first to measure interest; particularly for which C++ versions we need to support since the constexpr rules vary significantly by C++ version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions