-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use std::optional for event range end requested (#790)
Previously, SIZE_MAX was used to indicate that the full available end range of an input file was to be used. This caused issues when no input file was present (for example in the geometry examples) and --events was not given., since it would run SIZE_MAX events (see #707). This PR changes this to use std::optional<size_t>, so that the default is clearly communicated. The geometry example should now default to 1 if --events isn't supplied. Fixes #707
- Loading branch information
1 parent
8ce0f88
commit db1ce93
Showing
4 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters