We can't use DEFINE_TRACE macro for template outside class declaration.
Due by this, EphmeralRange.h, Position.h, VisibleSelection.h uses DEFINE_INLINE_TRACE()
rather than DEFINE_TRACE()
We would like to write
DEFINE_TRACE_FOR_TREMPLATE(Foo, T, S) {
visitor->trace(m_bar);
visitor->trace(m_baz);
}
then expand into:
template<typename T, typename S>
void Foo<T, S>::traceImpl(...) { ... }
void Foo<T, S>::trace(...) { ... }
blah
Comment 1 by sigbjo...@opera.com
, Feb 6 2017