-
Docs for C++ SDK states the following:
What’s the significance of using curly braces here? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.