diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-09-07 20:31:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-25 00:03:23 +0200 |
commit | 0c681b6509d4b517dc2e65a152753224df745605 (patch) | |
tree | 61c77765713f13d5d7006ef90e6c0a392ee6328a /src/common/Utilities/advstd.h | |
parent | 42f366648f6b65753b3719f66b406e110ec9a871 (diff) |
Scripts/Commands: New argument parsing methodology (PR #22363)
- Detect the arguments accepted by the command handler
- Tokenize out those arguments automatically and feed them to the handler
- Unmatched rest of the string can be accepted by trailing char const* or CommandArgs*
(cherry picked from commit 66a87c4642d25f27ca24254cfeb0a0c4b21036b1)
Diffstat (limited to 'src/common/Utilities/advstd.h')
-rw-r--r-- | src/common/Utilities/advstd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Utilities/advstd.h b/src/common/Utilities/advstd.h index f2db86f11b2..975fc2c85ad 100644 --- a/src/common/Utilities/advstd.h +++ b/src/common/Utilities/advstd.h @@ -21,6 +21,7 @@ #include <cstddef> #include <initializer_list> #include <type_traits> +#include <utility> // this namespace holds implementations of upcoming stdlib features that our c++ version doesn't have yet namespace advstd |