supersiege
Joined: 03 Feb 2025
Posts: 1
Posted: 2025-02-03 04:42
Back to top
Reply with quote
|
Hi everyone,
I'm working with libcfg++ and am trying to find the most efficient way to query configuration values while providing default values if a key isn't found. Currently, I'm using a combination of exists() and then getting the value if it exists, but it feels a bit clunky.
Is there a more concise or built-in method to retrieve a config value with a default fallback in libcfg++? For example, something like a getValueOrDefault() function? Or perhaps a best practice approach I'm overlooking?
Retro Bowl
Any suggestions or pointers would be greatly appreciated.
Thanks!
|
|
Post new topic
Reply to topic
|
|
|