[PATCH 0/5] LiveInterval refactoring

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Sep 3 11:39:00 PDT 2013


On Sep 3, 2013, at 11:30 AM, Matthias Braun <mbraun at apple.com> wrote:

> Sounds good. Though I’m having trouble make Segment an inner class of LiveInterval:
> I need to specialize the isPodLike type constraint class. But apparently c++ forces you to specialize templates at the same scope where the template was specified, so it is only possible
> to do that after the LiveIntervall class, where it is too late, because the SmallVector<Segment> has already been instantiated.
> So I guess I have to create a LiveSegment class outside LiveInterval, unless I’m missing some C++ tricks here…

Oh, for crying out loud! Maybe some of our C++ wizards can help?

I wonder, though, if isPodLike does any good? Could we just drop it?

Thanks,
/jakob





More information about the llvm-commits mailing list