Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-08-17 02:46:52 +0400
committerBert Belder <bertbelder@gmail.com>2012-08-17 03:02:03 +0400
commite8fd808dfb0065466712e5115b25f2c6ce984c14 (patch)
treecd3c633e832f78932235ce92ef4163d676aa7763 /src/node_object_wrap.h
parent060141c58a7cd49b1d243e8f5686195897ff83c4 (diff)
windows: avoid MSVC warnings about templates not having a dll interface
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r--src/node_object_wrap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index 311f3f0f429..62ea2444858 100644
--- a/src/node_object_wrap.h
+++ b/src/node_object_wrap.h
@@ -26,6 +26,12 @@
#include "v8.h"
#include <assert.h>
+// 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<v8::Object>;
+template class NODE_EXTERN v8::Persistent<v8::FunctionTemplate>;
+
namespace node {
class NODE_EXTERN ObjectWrap {