Skip to content

Commit eeac195

Browse files
lia-viamstuqdog
andauthored
Add instance comment boilerplate
Co-authored-by: Ethan <[email protected]>
1 parent 5535616 commit eeac195

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/viam/examples/modules/simple/client.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
using namespace viam::sdk;
1212

1313
int main() {
14+
// Every Viam C++ SDK program must have one and only one Instance object which is created before
15+
// any other C++ SDK objects and stays alive until all Viam C++ SDK objects are destroyed.
1416
Instance inst;
1517

1618
const char* uri = "http://localhost:8080/"; // replace with your URI if connecting securely

0 commit comments

Comments
 (0)