Skip to content

NamedType increment and decrement bypass range checks #192

@tomjnixon

Description

@tomjnixon

this test passes, and probably shouldn't:

TEST_CASE("NamedType_increment_check") {
  using namespace adm;
  using NamedIntegerRange = detail::NamedType<int, struct NamedIntegerRangeTag,
                                              detail::RangeValidator<0, 10> >;
  NamedIntegerRange value(0);
  value--;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions