Patch for LWG issue #2145

David Blaikie dblaikie at
Tue Aug 20 20:12:30 PDT 2013

On Tue, Aug 20, 2013 at 11:11 AM, Marshall Clow <mclow.lists at> wrote:
> 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)

Curious - I haven't dealt with constexpr much, but could you explain
further why this is untestable yet is a useful/meaningful change to

- David

More information about the cfe-commits mailing list