From e8fd808dfb0065466712e5115b25f2c6ce984c14 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 17 Aug 2012 00:46:52 +0200 Subject: [PATCH] windows: avoid MSVC warnings about templates not having a dll interface --- src/node_object_wrap.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 311f3f0f42..62ea244485 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -26,6 +26,12 @@ #include "v8.h" #include +// Explicitly instantiate some template classes, so we're sure they will be +// present in the binary / shared object. There isn't much doubt that they will +// be, but MSVC tends to complain about these things. +template class NODE_EXTERN v8::Persistent; +template class NODE_EXTERN v8::Persistent; + namespace node { class NODE_EXTERN ObjectWrap {