joyent/node — Issue #2786: addon Error: Unable to load shared library
Author: czajah
Created: 2012-02-19 10:07:53+00:00
State: open

I have this simple code of node addon:

#include
#include
#include
#include

template
class FooString
{
protected:
static std::vector< S > vec_strings;

public:
const S &str() const { return vec_strings[0]; }
std::string tostdstring() const;
};

template <>
std::string FooString::tostdstring() const { return str(); }

namespace v8
{
Handle Method(const Arguments& args) {
HandleScope scope;
return scope.Close(String::New("world"));
}

void init(Handle