Hello,

I use v8 embedded in a project and I'm updating to the latest release. 

The changes to v8::Persistent caused my code not compile anymore, because 
I'm using some persistent as member of an exported (dll) class and also as 
values of an std::map.
Both exported classes (at least in MSVC)  and std::map require Persistent 
to be copyable, which is not true by default. 

Is it safe/good practice to use Persistent* instead and allocate them on 
the heap?
Does an heap allocated Persistent manage correctly its object reference and 
cleanup?

Is it a better alternative to use the CopyablePersistentTraits? I'm not 
sure why Persistent cannot be copied by default...

Thank you!
Ricky

-- 
-- 
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.

Reply via email to