|
Docs for C++ SDK states the following:
What’s the significance of using curly braces here? |
Answered by
jmklix
Mar 21, 2024
Replies: 1 comment 1 reply
|
This serves the purpose of adding a scope guard to all of the sdk calls. It makes sure that the sdk is correctly and completely initialized before any other sdk calls are make. And it makes sure everything is destroyed and ready to be cleaned up at the end of the curly braces. |
1 reply
Answer selected by
buddhike
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This serves the purpose of adding a scope guard to all of the sdk calls. It makes sure that the sdk is correctly and completely initialized before any other sdk calls are make. And it makes sure everything is destroyed and ready to be cleaned up at the end of the curly braces.