The closest question I found in SO was this one, but the answers were really referring to advantages of C++/CLI over C#.
I need to understand the advantages of C++/CLI over standard C++.
C++/CLI and Managed C++ (or Managed Extensions for C++) are two different things. Managed C++ is the previous version, and has some syntactical differences. It is also deprecated in favor of C++/CLI.
C++/CLI is an extension of ISO C++, so the comparison is moot. It allows writing code that will run on the CLR. As such, whether or not you want to use that extension depends on whether or not you need to write something in C++ that also needs to interface with a CIL language (C#, for instance).
For example, if you need to use a legacy library written in C or C++ within a .NET application, you can write a C++/CLI wrapper for it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With