What is the CLI/C++ equivalent to the C# using statement
Managed C++/CLI
2
Posts
2
Posters
0
Views
1
Watching
-
I think there is a specific keyword in CLI/C++ , which is the equivalent to the using keyword in C#. http://stackoverflow.com/q/338950[^] Can someone please help ?
The answer given in that question is correct. There is no C++ keyword equivalent to using() from C# because C++/CLI has deterministic finalization. When the object goes out of scope and there are no more references, it will be disposed.