How to use Minimal GC in VC++ 2013? [duplicate]
问题 This question already has an answer here : Garbage Collection in C++11 (1 answer) Closed 7 years ago . According to here, VC++ 2013 supports Minimal GC. Could you guys give me some examples to illustrate its usage? In other words, with VC++ 2013, how to use GC? The code example I want might look like this: auto p = gcnew int; Are there any? 回答1: You may be disappointed about what Minimal GC in C++11: It doesn't do garbage collection! The minimal garbage collection support in C++11 consists of