Bug 1642

Summary: call of overloaded ‘ScheduleWithContext(uint32_t&, ns3::Time, NULL)’ is ambiguous
Product: ns-3 Reporter: Taqi <takai.kenn>
Component: coreAssignee: Mathieu Lacage <mathieu.lacage>
Status: NEW ---    
Severity: normal CC: ns-bugs, tomh
Priority: P4 Keywords: bug
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Taqi 2013-04-24 08:48:27 UTC
When Calling ScheduleWithContext(context, MilliSeconds(1.0), NULL) an error is raised "call of overloaded function is ambiguous", while calling the thread-unsafe version Schedule(MilliSeconds(1.0), NULL) compiles successfully.

I needed to schedule to schedule dummy events from a thread that's why I passed NULL as function ptr, I can make ScheduleWithContext compile by declaring a null pointer void (*f)(void) = 0 and passing f as function ptr.

But I expected both the thread safe & unsafe versions to behave similarly to NULL values!