Menu

#6 Integer range check

open
None
5
2005-01-20
2005-01-18
Anonymous
No

It would be handy to have an overloaded GetInt method
in the ConfigBase class with two extra integer
parameters min and max to check if the configured value
falls in a valid range and eventually returning a default
value.

Discussion

  • Brent R. Matzelle

    • assigned_to: nobody --> bmatzelle
     
  • Brent R. Matzelle

    Logged In: YES
    user_id=163900

    Please give me an example of how you would use this in an
    application.

     

Log in to post a comment.

MongoDB Logo MongoDB