X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/89a95d4776098c0d70653eebdc4f455f2e8e341d..7ab9e6779d33d38b29b313153a6b109574699617:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index 8b58024..fcefd7b 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -39,6 +39,7 @@ #include "Pooling.hpp" #include "String.hpp" +#include "Utility.hpp" extern JSStringRef Array_s; extern JSStringRef constructor_s; @@ -194,15 +195,9 @@ class CYJSString { { } - template - CYJSString(Arg0_ arg0) : - string_(CYCopyJSString(arg0)) - { - } - - template - CYJSString(Arg0_ arg0, Arg1_ arg1) : - string_(CYCopyJSString(arg0, arg1)) + template + CYJSString(Args_ &&... args) : + string_(CYCopyJSString(cy::Forward(args)...)) { }