Can the factory use primitive types? #11

Closed
swebb opened this Issue Feb 19, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@swebb

swebb commented Feb 19, 2012

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 Mar 21, 2012

@tsa

This comment has been minimized.

Show comment Hide comment
@tsa

tsa Mar 21, 2012

Owner

Yes it is possible to create such a factory:

vu8::Factory<int>

for constructor that takes a single int.

Owner

tsa commented Mar 21, 2012

Yes it is possible to create such a factory:

vu8::Factory<int>

for constructor that takes a single int.

@tsa

This comment has been minimized.

Show comment Hide comment
@tsa

tsa Mar 21, 2012

Owner

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

Owner

tsa commented Mar 21, 2012

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