Bugzilla – Bug 1642
call of overloaded ‘ScheduleWithContext(uint32_t&, ns3::Time, NULL)’ is ambiguous
Last modified: 2013-04-26 13:40:57 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!