Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can the factory use primitive types? #11

Closed
swebb opened this Issue · 2 comments

2 participants

@swebb

I'm new to c++ templates and I'm struggling to understand the code.

Is it possible to create a factory such as Factory? This gives the following error:

error: no matching function for call to 'FromV8(v8::Localv8::Value)'

What is the correct syntax?

Cheers.

Steve.

@tsa tsa closed this
@tsa
Owner

Yes it is possible to create such a factory:

vu8::Factory<int>

for constructor that takes a single int.

@tsa
Owner

Please attach your code to your query if you wish help with your error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.