VC++ 2005 and ref objects in the stack

  • Thread starter Thread starter Ioannis Vranos
  • Start date Start date
ref objects cannot be created on the stack. C++/CLI simulates stack
semantics, but the objects are actually still on the managed heap.
 
Nishant said:
ref objects cannot be created on the stack. C++/CLI simulates stack
semantics, but the objects are actually still on the managed heap.



Yes. Will these stack semantics be implemented in Whidbey?






Best regards,

Ioannis Vranos
 
Carl said:
Yes. This will be in beta 2.



And I suppose, STL containers will be able to be used with stack
semantics, right?


In the style:


vector<String ^>strv;


or even


vector<String>strv;



Will these both be enabled?






Best regards,

Ioannis Vranos
 
Ioannis said:
And I suppose, STL containers will be able to be used with stack
semantics, right?

That's the plan as far as I understand it.
In the style:
vector<String ^>strv;

This one's in the plan for sure.
or even
vector<String>strv;

I don't think this one's in the plan for Whidbey, but I think it's in the
long term vision for C++/.NET unifications.
Will these both be enabled?

Last I heard (chat this morning), it wasn't known if "STL.NET" would be in
Beta 2.

-cd
 
Back
Top