<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 3:27 PM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><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"><span class="">>> What about passing an optional diagnostic handler? If nullptr is<br>
>> passed, the system one is used.<br>
><br>
><br>
> That could also work. We'd still need an adapter to avoid writing a handler<br>
> function each time.<br>
<br>
</span>What do you think of the attached patches?<br></blockquote><div><br></div><div>I was also thinking about std::function ;)</div><div><br></div><div>Maybe add a typedef for std::function<void(const DiagnosticInfo &)>? Otherwise looks good!</div><div><br></div><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">
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><div><br></div>
</div></div>