Skip to content

linalg.h: is_arithmetic insufficient for packed types #8400

@tex3d

Description

@tex3d

Description
In linalg.h, the is_arithmetic type trait is used to constrain native vector component types.

template <typename T> struct is_arithmetic {

However, for various cases, we should allow packed component types, yet we probably don't want to consider them arithmetic, even if packed component types are accepted everywhere we would check in this API.

I recommend we add a new type trait (likely specific to LinAlg for now) for identifying component types that include packed types, and use that instead wherever packed types should be accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions