diff --git a/native_mate/converter.h b/native_mate/converter.h index 66fc2d31ab6..86a1cc4cd0e 100644 --- a/native_mate/converter.h +++ b/native_mate/converter.h @@ -189,10 +189,15 @@ struct Converter > { // Convenience functions that deduce T. template v8::Handle ConvertToV8(v8::Isolate* isolate, - T input) { + const T& input) { return Converter::ToV8(isolate, input); } +inline v8::Handle ConvertToV8(v8::Isolate* isolate, + const char* input) { + return Converter::ToV8(isolate, input); +} + inline v8::Handle StringToV8( v8::Isolate* isolate, const base::StringPiece& input) {