Skip to content

Trigger cleaner static_assert errors for missing comparison operators #65

@htiek

Description

@htiek

The Set<T> and Map<T, V> types will report nice static_assert errors to students if T is not a comparable type. However, the relative comparison operators between Vector<T>, which can only operate if T is comparable, do not trigger these sorts of static_asserts. There is a lovely and helpful message at the spot in the template code where instantiation fails, but it can easily be missed by students in a wall of template errors when that happens.

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