[patch] Finishing touch for the std::error_code transition

Chandler Carruth chandlerc at google.com
Fri Jun 13 09:32:17 PDT 2014


This is a pretty nifty hack. =D

One question, can we really use std::generic_category for all of these
codes? The actual standard library splits betwene generic_category and
system_category IIRC. I'm wondering if we have to implement our own
category that manages extracting the relevant bits of information under the
hood.

Thoughts?


On Fri, Jun 13, 2014 at 5:28 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> Hi,
>
> While std::error_code itself seems to work OK in all platforms, there
> a few annoying differences with regards to the std::errc enumeration.
>
> The attached patch adds a simple llvm enumeration, which will
> hopefully avoid build breakages in other platforms and surprises as we
> get more uses of std::error_code.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140613/65f3f8e6/attachment.html>


More information about the llvm-commits mailing list