[Ns-bugs] [Bug 518] Constructing objects from a TypeId seems complex

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon Mar 9 12:15:18 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=518





--- Comment #5 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr>  2009-03-09 15:15:18 EDT ---
(In reply to comment #4)
> > The main reason why this is not so is that a TypeId can represent anything
> > which derives from ObjectBase while ObjectFactory can only create objects which
> > derive from Object.
> 
> I don't see how one thing invalidates the other:
> 
>    Ptr<T> TypeId::operator() const;
> 
> This is type agnostic; can build anything that is reference countable ;-)

ObjectBase is not reference countable, hence, my earlier comment.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list