Patch for LWG issue #2145

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

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>

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: <>

More information about the cfe-commits mailing list