Closed Bug 1189910 Opened 9 years ago Closed 9 years ago

Make DefaultTracer<T> work automatically for all StaticTraceable T

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1189809

People

(Reporter: fitzgen, Unassigned)

Details

Are there plans to make `DefaultTracer<T>` Just Work(tm) with any `T : public StaticTraceable` without any intervention needed? I have written the following twice now, and it seems like it is going to keep coming up.

> template<>
> DefaultTracer<MyStaticTraceable> {
>     static void trace(JSTracer* trc, MyStaticTraceable* t) {
>         MyStaticTraceable::trace(t, trc);
>     }
> }
And apparently this was done in bug 1189809! Great!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.