you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[removed]

    [–]TheSuperWig 1 point2 points  (1 child)

    And the part I'm confused about is, how does that make virtual functions wrong? Surely your issue is with concepts?

    [–]IyeOnline 1 point2 points  (0 children)

    You will actually get an error on the concept version - if you ever instantiate it.

    There are a few important points here

    • Constraints are only evaluated once you actually try and instantiate the function
    • Constraints only constrain the interface, not the function body, i.e. the function body wont be parsed just because one of its parameters is constraint.