Always, um: C ++ / CLI - C ++ for the .NET Framework. Pretty good garbage collection .: P
Although, to be honest, with all the syntactic sugar that they put there, you could almost consider it a completely new language that just works well with C / C ++.
If you are not married to C ++ as a language, you can also look at D , which compiles into native code, such as C ++ (and unlike C ++ / CLI), but also has garbage collection.
Randolpho
source share