-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Existence Check for Array Operations
For operations other than assignment (EQUALS keyword), this commit ensures that the array being mutated already exists in the input. In particular, this means that a request of the form ADD SGU 0.123 / / will halt input processing and generate an "Error" of the form Error: Problem with keyword ADD In USER_ERR_ADD.DATA line 202 Target array SGU must already exist when operated upon in ADD. unless the 'SGU' array has already been assigned earlier. To this end, repurpose the second parameter to member function FieldProps::try_get<>() and make this a bitmask of flags instead of a single 'bool'. The currently supported flags are 'AllowUnsupported' and 'MustExist' with the former representing the original 'bool' parameter and the second requesting that the property array must already exist for the request to succeed.
- Loading branch information
Showing
4 changed files
with
218 additions
and
18 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