Skip to content

Add Ada and Pascal style bounded integer types? #19

@mborland

Description

@mborland

Something to the affect of:

bounded_uint x {100, 200}

Class bounded_int
{
    Template <detail::integral T>
    Consteval bounded_int {T min, T max}
    {
        // Check bounds
        // Choose internal wrapper type?
    }
};

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions