Skip to content

Warnings on indices types #25

@ahoarau

Description

@ahoarau

Hello,
Is there any reason why the Indices fields are int and not std::size_t like in the Array class ?

struct Index final {
    int position_index;
    int texcoord_index;
    int normal_index;
};

Wouldn't std::size_t be preferable in that case ?

struct Index final {
    std::size_t position_index{};
    std::size_t texcoord_index{};
    std::size_t normal_index{};
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions