Boost logo

Boost :

Subject: Re: [boost] Clang 600 and BOOST_SYSTEM_CONSTEXPR causes error_code.hpp compile failure.
From: Peter Dimov (lists_at_[hidden])
Date: 2018-07-08 10:33:56


John Maddock wrote:

> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\include\system_error(168,18): note: declared here
> 1> /* constexpr */ error_category() _NOEXCEPT // TRANSITION

This commented-out constexpr (in the 2015 headers) is the problem, thanks.
Now how do we work around it...

> I believe the error is correct as well: class std_category has virtual
> member functions and so no constructor can ever be constexpr as the type
> can never be a literal.

No.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk