[Ns-bugs] [Bug 48] Create function and parameters that are from virtual classes

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Sat Jul 14 08:42:54 PDT 2007


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





------- Comment #1 from mathieu.lacage at sophia.inria.fr  2007-07-14 11:42 -------
(In reply to comment #0)
> Is it normal that the Create function works only if ontime and offtime are not
> from a class that has virtual functions? That is, if I define them as
> ConstantVariable, then it compiles, but if I define than as RandomVariable
> (virtual base class) and pass in a ConstantVariable (derived class), then it
> won't compile telling me that the RandomVariable class has some pure virtual
> functions.
> 
> FunctionXX(const  RandomVariable& ontime, const  RandomVariable& offtime)
> {
>   m_onOffGenerator = Create<OnOffGenerator> (ontime, offtime);
> }

Could you provide a reduced test case without OnOffGenerator ?


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


More information about the Ns-bugs mailing list