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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top