Bug 1642 - call of overloaded ‘ScheduleWithContext(uint32_t&, ns3::Time, NULL)’ is ambiguous
call of overloaded ‘ScheduleWithContext(uint32_t&, ns3::Time, NULL)’ is ambig...
Status: NEW
Product: ns-3
Classification: Unclassified
Component: core
All All
: P4 normal
Assigned To: Mathieu Lacage
: bug
Depends on:
  Show dependency treegraph
Reported: 2013-04-24 08:48 EDT by Taqi
Modified: 2013-04-26 13:40 EDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Taqi 2013-04-24 08:48:27 EDT
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!