Skip to content

Commit

Permalink
forward arguments in class_::create_object()
Browse files Browse the repository at this point in the history
see issue #116
  • Loading branch information
pmed committed Sep 1, 2019
1 parent 1b7d8af commit 688e9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v8pp/class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class class_

/// Create a wrapped C++ object and import it into JavaScript
template<typename ...Args>
static v8::Local<v8::Object> create_object(v8::Isolate* isolate, Args... args)
static v8::Local<v8::Object> create_object(v8::Isolate* isolate, Args&&... args)
{
return import_external(isolate,
factory<T, Traits>::create(isolate, std::forward<Args>(args)...));
Expand Down

0 comments on commit 688e9e1

Please sign in to comment.