ObjectTemplate has no constructor (because it lives on the managed heap, where C++ constructors don't make sense). Declaring a private constructor (without defining it anywhere) prevents the C++ compiler from automatically creating a default constructor. The only way to create an ObjectTemplate is with its New(...) method.
On Fri, Jul 20, 2018 at 2:49 AM <fengxing...@gmail.com> wrote: > Hi, > ObjectTemplate is declared in v8.h, and it's constructor was declared as > private. But where is the implementation of it's constructor? I can't find > it's source code. > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.