Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 1e97776aab008f35d6cc23a5fbc468327f9d68d8..2c97d7c2b2210e16df314ebeb14b2739d9bae169 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -328,9 +328,7 @@ class Local { |
friend class PersistentValueMapBase; |
template<class F1, class F2> friend class PersistentValueVector; |
- template <class S> |
- V8_INLINE Local(S* that) |
- : val_(that) {} |
+ explicit V8_INLINE Local(T* that) : val_(that) {} |
V8_INLINE static Local<T> New(Isolate* isolate, T* that); |
T* val_; |
}; |
@@ -786,7 +784,7 @@ template <class T, class M> class Persistent : public PersistentBase<T> { |
template<class F1, class F2> friend class Persistent; |
template<class F> friend class ReturnValue; |
- template <class S> V8_INLINE Persistent(S* that) : PersistentBase<T>(that) { } |
+ explicit V8_INLINE Persistent(T* that) : PersistentBase<T>(that) {} |
V8_INLINE T* operator*() const { return this->val_; } |
template<class S, class M2> |
V8_INLINE void Copy(const Persistent<S, M2>& that); |