Comment #1 on issue 2091 by [email protected]: typo in
http://code.google.com/p/v8/issues/detail?id=2091
The above post is by my mistake... (hit the enter key after only type "typo
in", and find no way to edit the post.), it shoud be "typo in
lazy-instance.h".
//... near the end of lazy-instance.h
template <typename T,
typename CreateTrait = DefaultConstructTrait<T>, // <--- here!!!
typename InitOnceTrait = SingleThreadInitOnceTrait,
typename DestroyTrait = LeakyInstanceTrait<T> >
struct LazyDynamicInstance {
typedef LazyInstanceImpl<T, DynamicallyAllocatedInstanceTrait<T>,
CreateTrait, InitOnceTrait, DestroyTrait> type;
};
I think it should mean to use "DefaultCreateTrait" instead
of "DefaultConstructTrait" in the "CreateTrait" defalut parameter.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev