Bugzilla – Full Text Bug Listing |
Summary: | Create function and parameters that are from virtual classes | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Emmanuelle Laprise <emmanuelle.laprise> |
Component: | core | Assignee: | ns-bugs <ns-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | P3 | ||
Version: | pre-release | ||
Hardware: | PC | ||
OS: | Linux |
Description
Emmanuelle Laprise
2007-07-13 11:52:32 EDT
(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 ? mark as INVALID? (no test case provided) ok. |