diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-08-17 02:46:52 +0400 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-08-17 03:02:03 +0400 |
commit | e8fd808dfb0065466712e5115b25f2c6ce984c14 (patch) | |
tree | cd3c633e832f78932235ce92ef4163d676aa7763 /src/node_object_wrap.h | |
parent | 060141c58a7cd49b1d243e8f5686195897ff83c4 (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.h | 6 |
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 { |