<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 2, 2017 at 9:00 PM Davide Italiano via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">davide added subscribers: dblaikie, davide.<br>
davide added a comment.<br>
<br>
I ended up in a situation where I needed 11 arguments (if you want a similar example, just grep for `StringSwitch<bool>` in MC).<br>
I think the proposed solution was OK'ish up to 10 arguments, but adding more might be not ideal. So, now that we live in a post C++98 world, what do you think about switching this class to use variadic templating? I'm going to implement such a solution if nobody has objections. (cc: @dblaikie for thoughts)<br></blockquote><div><br>Yep, don't see any reason not to solve this in general with variadic templates (maybe there are hiccups/difficulties I'm not seeing, of course).<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D24882" rel="noreferrer" target="_blank">https://reviews.llvm.org/D24882</a><br>
<br>
<br>
<br>
</blockquote></div></div>