0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

windows: avoid MSVC warnings about templates not having a dll interface

This commit is contained in:
Bert Belder 2012-08-17 00:46:52 +02:00
parent 060141c58a
commit e8fd808dfb

View File

@ -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 {