
25 Apr
2006
25 Apr
'06
5:13 a.m.
Jorge Lodos wrote:
Sure, but it returns a copy of the holded object. The described operator returns a reference to the holded object.
No, it returns a reference to held object. any a(0); int& i = any_cast<int&>(a); -- Alexander Nasonov Project Manager http://www.akmosoft.com