<div dir="ltr">Hi Rafael,<div><br></div><div>Oops - I didn't notice that when I copied over Peter's version. I've corrected the comment in r270956. Thanks for catching that!<div><br></div><div>- Lang.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 26, 2016 at 7:20 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> +/// StringError is useful in cases where the client is not expected to be able<br>
> +/// to consume the specific error message programmatically (for example, if the<br>
> +/// error message is to be presented to the user). It cannot be converted to a<br>
> +/// std::error_code.<br>
> +class StringError : public ErrorInfo<StringError> {<br>
> +public:<br>
> +  static char ID;<br>
> +  StringError(const Twine &S, std::error_code EC);<br>
> +  void log(raw_ostream &OS) const override;<br>
> +  std::error_code convertToErrorCode() const override;<br>
> +private:<br>
> +  std::string Msg;<br>
> +  std::error_code EC;<br>
> +};<br>
<br>
</span>If it cannot be converted to error_code, why does it take an<br>
error_code and stores it?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>