I started using this:
template <typename T> struct PersistentP : public
boost::shared_ptr<v8::Persistent<T> >
{
typedef boost::shared_ptr<v8::Persistent<T> > _inherited;
PersistentP(v8::Persistent<T> *inPersistentP0 = NULL) {
_inherited::reset(inPersistentP0);
}
v8::Local<T> GetLocal() const {
return v8::Local<T>::New(v8::Isolate::GetCurrent(), *_inherited::get());
}
};
This indirection greatly simplifies my code!
On Mon, Sep 16, 2013 at 3:18 PM, ioannis <[email protected]> wrote:
> So with the resent changes to Persistent how can we store a series of
> Persistent<Function> handles to an STL container like map ?
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "v8-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/v8-users/6kSAbnUb-rQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
--
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.