Dan,

I think something is broken in the new Eternal API.
This example code block fails to compile.
Seems ObjectTemplate is missing a Cast method?

   Eternal<ObjectTemplate> eternal;
   Local<ObjectTemplate> tmplXFile;
   tmplXFile = eternal.Get(pIsolate);
   eternal.Set(pIsolate, tmplXFile);

V8\include\v8.h(406) : error C2039: 'Cast' : is not a member of 
'v8::ObjectTemplate'
        V8\include\v8.h(3455) : see declaration of 'v8::ObjectTemplate'
        V8\include\v8.h(5697) : see reference to function template 
instantiation 'v8::Local<T> 
v8::Local<T>::Cast<v8::Value>(v8::Local<v8::Value>)' being compiled
        with
        [
            T=v8::ObjectTemplate
        ]
        V8\include\v8.h(5696) : while compiling class template member 
function 'v8::Local<T> v8::Eternal<T>::Get(v8::Isolate *)'
        with
        [
            T=v8::ObjectTemplate
        ]
        .\RXFile.cpp(452) : see reference to class template instantiation 
'v8::Eternal<T>' being compiled
        with
        [
            T=v8::ObjectTemplate
        ]
V8\include\v8.h(406) : error C2784: 'v8::Local<T> 
v8::Local<T>::Cast(v8::Local<S>)' : could not deduce template argument for 
'v8::Local<S>' from 'v8::Value *'
        with
        [
            T=v8::ObjectTemplate
        ]
        V8\include\v8.h(400) : see declaration of 'v8::Local<T>::Cast'
        with
        [
            T=v8::ObjectTemplate
        ]
V8\include\v8.h(6285) : error C2440: 'static_cast' : cannot convert from 
'v8::ObjectTemplate *' to 'v8::Value *'
        Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast
        V8\include\v8.h(5691) : see reference to function template 
instantiation 'v8::Value *v8::Value::Cast<T>(T *)' being compiled
        with
        [
            T=v8::ObjectTemplate
        ]
        .\RXFile.cpp(455) : see reference to function template 
instantiation 'void v8::Eternal<T>::Set<v8::ObjectTemplate>(v8::Isolate 
*,v8::Local<T>)' being compiled
        with
        [
            T=v8::ObjectTemplate
        ]

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