Deleting Int32?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm reading page 40 of "Managed .NET and C++ Development" by Stephen Fraser
and it says:

"Managed C++ value types default to being garbage collected when defined as
pointers, wheras traditional C++ data types don't. Because this is the case,
pointers that you allocate using int need to be deleted."

But isn't int just an alias for Int32???

Rasika.
 
Rasika said:
I'm reading page 40 of "Managed .NET and C++ Development" by Stephen Fraser
and it says:

"Managed C++ value types default to being garbage collected when defined as
pointers, wheras traditional C++ data types don't. Because this is the case,
pointers that you allocate using int need to be deleted."

But isn't int just an alias for Int32???

Rasika.
Not for the purpose of creating a pointer to it in the 2002 and 2003
release.

an int* == int __nogc *
and an Int32* == int __gc *

Ronald Laeremans
Visual C++ team
 
Ronald,

Thank you for the information. So it is different in 2005?

Im very new to MVC++. Is there a place I can get more information about the
2005 release's differences from 2003?

Rasika.
 
Back
Top