diff options
author | hop311 <hop3114@gmail.com> | 2023-10-15 21:38:34 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-10-15 21:38:34 +0200 |
commit | 104ae73748d350b5cc292646f5f851bff96ee947 (patch) | |
tree | d8a60c3c32989fd48d71be1c9177cfc68bd038c7 /src/openvic-simulation/dataloader/NodeTools.hpp | |
parent | d1125bf50be8fd415e2ce5179fdf446918e16d93 (diff) |
allow_empty option for expect_identifier_or_string
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/NodeTools.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp index e98a4b0..42e7c5d 100644 --- a/src/openvic-simulation/dataloader/NodeTools.hpp +++ b/src/openvic-simulation/dataloader/NodeTools.hpp @@ -33,7 +33,7 @@ namespace OpenVic { node_callback_t expect_identifier(callback_t<std::string_view> callback); node_callback_t expect_string(callback_t<std::string_view> callback, bool allow_empty = true); - node_callback_t expect_identifier_or_string(callback_t<std::string_view> callback); + node_callback_t expect_identifier_or_string(callback_t<std::string_view> callback, bool allow_empty = false); node_callback_t expect_bool(callback_t<bool> callback); node_callback_t expect_int_bool(callback_t<bool> callback); |