Menu

Code Merge Request #9: Allow const Contraints to be passed to Arg constructors (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

John Beard wants to merge 1 commit from /u/jjbeard/tclap/ to 1.4, 2023-05-25

Allow const Contraints in constructors

Contraints are only used in const-safe ways, so allow a caller
to pass a const Constraint.

This means firstly it's clearer that a constraint won't be modified
by use by an Arg object, so you can safely share a constraint between
different args.

It also allows static construction of constant constraints.
Commit Date  
[4dd8ae] (const_constraint) by John Beard John Beard

Allow const Constraints in constructors

Constraints are only used in const-safe ways, so allow a caller
to pass a const Constraint.

This means firstly it's clearer that a constraint won't be modified
by use by an Arg object, so you can safely share a constraint between
different args.

It also allows static construction of constant constraints.

2023-05-25 10:58:47 Tree

Discussion

  • Daniel Aarno

    Daniel Aarno - 2023-05-25
    • Status: open --> merged
     
  • Daniel Aarno

    Daniel Aarno - 2023-05-25

    Thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.