[Feature] Unpack JSON from variable to args #5155
ANVLISTENER
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If we have
func(a="val1", b="val2") automatically through some way of passing. In Python, func(**json) work. kindly advise
Something that might be helpful:
Variable templates were introduced in C++14 (The C++ "*args")If you need to accept an unknown number of positional arguments of any type, use Parameter Packs
Beta Was this translation helpful? Give feedback.
All reactions