What are main difrences between * ^ and & in visual-C++ 2010?
views:
83answers:
2
Ben Voigt
2010-08-27 19:45:35
+2
A:
You mean C++/CLI, the new "managed C++" designed by Microsoft.
Type*still declares a native pointerType^declares a reference to an object allocated with gcnew (you can think of it as a "pointer on managed objects")Type&still declares a native reference
Samuel_xL
2010-08-24 17:02:33
`Type^` is not a reference but a tracking handle. `Type%` is a tracking (gc-aware) reference to a managed type.
Ben Voigt
2010-08-27 19:40:05