Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to read fields into std::optional #1765

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

daniel-riehm
Copy link
Collaborator

This PR implements the csv_reader.read() interface for std::optional wrappers around supported field types. This provides an alternate way of handling missing or invalid fields, rather than needing a try{} catch(parse_error){} around every read command.

@daniel-riehm daniel-riehm force-pushed the dev/csv-input-optional branch from 570b90d to 087a2bc Compare May 16, 2023 19:28
@daniel-riehm daniel-riehm force-pushed the dev/csv-input-optional branch from 087a2bc to 3bfea14 Compare May 22, 2023 23:19
@daniel-riehm daniel-riehm force-pushed the dev/csv-input-optional branch from 3bfea14 to c1db7e1 Compare May 29, 2023 17:10
@daniel-riehm daniel-riehm merged commit f10ca21 into Kitware:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants