Code:
//If all is good, set up the timer event and lets roll!
if(BREAKTIME >= 1000)
{
[B]TimedEvent * te = TimedEvent::Allocate(&Announcer, new NoSharedPtrCallbackP0<Announcement>(&Announcer, &Announcement::Run), 1, BREAKTIME, 0);[/B]
sWorld.event_AddEvent(te);
} else {
//Someone has their time set under 1 second.;P
ShowMsg("Announcer has been disabled. Please insure you have the config set right!");
}
}
Code:
1>------ Build started: Project: Announcer, Configuration: Release Win32 ------
1>Compiling...
1>Announcer.cpp
1>..\src\Announcer\Announcer.cpp(46) : error C2664: 'TimedEvent::Allocate' : cannot convert parameter 1 from 'Announcement *' to 'std::tr1::shared_ptr<_Ty>'
1> with
1> [
1> _Ty=EventableObject
1> ]
1> Constructor for class 'std::tr1::shared_ptr<_Ty>' is declared 'explicit'
1> with
1> [
1> _Ty=EventableObject
1> ]
Can anyone help me?