diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-08-17 00:46:52 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-08-17 01:02:03 +0200 |
commit | e8fd808dfb0065466712e5115b25f2c6ce984c14 (patch) | |
tree | cd3c633e832f78932235ce92ef4163d676aa7763 | |
parent | 060141c58a7cd49b1d243e8f5686195897ff83c4 (diff) | |
download | node-new-e8fd808dfb0065466712e5115b25f2c6ce984c14.tar.gz |
windows: avoid MSVC warnings about templates not having a dll interface
-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 311f3f0f42..62ea244485 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 { |