This patch just adds the variable templates in <experimental/system_error>.
see: https://rawgit.com/cplusplus/fundamentals-ts/v1/fundamentals-ts.html#syserror
Differential D7353
[libcxx] Add <experimental/system_error> Authored by EricWF on Feb 2 2015, 12:12 PM.
Details This patch just adds the variable templates in <experimental/system_error>. see: https://rawgit.com/cplusplus/fundamentals-ts/v1/fundamentals-ts.html#syserror
Diff Detail Event TimelineComment Actions LGTM. I think the whole "static assertion on three lines" coding style is hard(er) to read, but the checks are there and are fine. Comment Actions I think @chandlerc said the hardest part of C++ is where to split the line. I'll try and come up with something better in the tests without violating the 80 col limit. Comment Actions I let clang-format take a pass at it and cleaned up what came out. It still doesn't look nice but it is better(?). Comment Actions Looks good to me.
| ||||||
You know, if I was writing this, I would align stuff to make it clear what's the same and what's different.
static_assert( ex::is_error_condition_enum_v<std::errc> == std::is_error_condition_enum <std::errc>::value, "" );But that might just be me indulging my OCD.