Persistent is defined by default with NonCopyablePersistentTraits which means that it cannot be used in structs that allow copy/assignment operations.
You can explicitly define Persistent with CopyablePersistentTraits in order to allow copy/assignment operations. I use the following type definition for cleaner code typedef Persistent<Function, CopyablePersistentTraits<Function>> PersistentFunction; On Tuesday, October 8, 2013 5:55:14 AM UTC+3, Gregory Hlavac wrote: > 1> > c:\trs\trstrunk\branch\scriptingupdate\gamecore\ScriptedMission.h(49) : > see reference to class template instantiation 'v8::Persistent<T>' being > compiled > 1> with > 1> [ > 1> T=v8::Function > 1> ] > > > So that's the error I'm getting located at this line. > > > struct TimerInformation > { > int timerRemaining; > Persistent<Function> TimerCompleteCallback; > }; > > > Any ideas? > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.