On Tue, Oct 2, 2012 at 5:48 PM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk" target="_blank" class="cremed">stoklund@2pi.dk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
On Oct 2, 2012, at 5:43 PM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com" class="cremed">chandlerc@gmail.com</a>> wrote:<br>
<br>
> I can go back to my original idea for solving this: make a predicate that calls the set_.erase(). I think that's slightly better than open coding any of these loops.... It's just a wrapper predicate.<br>
<br>
</div>I find an explicit loop orders of magnitude easier to read than template hacks, but that's just me.<br></blockquote><div><br></div><div>I do tend to agree. As it happens, the wrapper here requires very little template stuff, it's just a wrapper struct instead of a wrapper lambda which would be the cleanest solution. I've tried this out in r165076. If it doesn't scan easily just let me know and I'll happily switch it to a loop. =]</div>
</div></div>