Skip to content

count_of<TypePack<int>> returns 0 #27

Description

@MaxMatti

I was using meta17::count_of<TypePack<int>> which returns 0 because the type TypePack<int> is not in the empty typepack.
However I was expecting to get the amount of types present in TypePack<int> which is 1.

Not getting a compiler error led me to believe that this is the correct function for that.
Maybe we should introduce a compiler error for such cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions