-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make more methods `const` by doing work in the constructors of certain `*Reader` classes. This means that we don't have to worry as much about calling `name()` before `value()` in the `VariableReader`, which is hard to do if you are calling `foo(v.name(), v.value())` as there's no C++ guarantee which function is called first. Add structured bindings to `VariableReader` to keep the interface even more succinct. Rename non-`const` methods to `read*()` so that it is more obvious that they are mutating.
- Loading branch information
1 parent
ec0772c
commit 37057dd
Showing
6 changed files
with
151 additions
and
124 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
Oops, something went wrong.