[cfe-dev] FoldingSetVector and removing template specializations
Axel.Naumann at cern.ch
Fri Jun 8 05:24:24 PDT 2012
r156133 (introduction of FoldingSetVector for template specializations)
broke our use case: we need to be able to revert AST nodes, i.e. we rely
on RemoveNode(). RemoveNode() is evil, so I suggest the attached patch
that allows us to cast-to-derived the FoldingSetVector, where our evil
derived implements RemoveNode() without exposing it to clang.
Would you agree to that tiny change? (If so I'll reuse that pattern for
subsequent occurrences of this problem :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 404 bytes
Desc: not available
More information about the cfe-dev