Skip to content

Inconsistent types in sequence() and range() #106

Open
@whart222

Description

@whart222

These functions are templated on a single type. However, type inference is not smart enough to correctly infer the type of the following declaration:

size_t N = 10;
for (auto i: sequence(1,N))
  ...

The first argument is an int and the second is a `size_t.

We should be able to correctly deduce the expected behavior from the given types.

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