Patch for LWG issue #2145

Marshall Clow mclow.lists at gmail.com
Tue Aug 20 11:11:44 PDT 2013


http://cplusplus.github.io/LWG/lwg-defects.html#2145

Mark the constructor for std::error_category as inline and constexpr.
Leave the (existing, out-of-line, non-constexpr) in the dylib for compatibility with existing programs)
No tests, because I don't know how to test it (given that error_category is both an abstract class and has a user-defined destructor)

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ish2145.patch
Type: application/octet-stream
Size: 2843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130820/cd6b87c9/attachment.obj>


More information about the cfe-commits mailing list