Boost logo

Boost :

Subject: [boost] [system] Clang CI builds broken because of constexpr
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2018-07-17 11:52:31


I'm seeing these errors in Travis CI builds with Clang 3.8, 3.9, 4.0 and

./boost/system/error_code.hpp:232:41: error: constexpr constructor never
produces a constant expression [-Winvalid-constexpr]
         BOOST_SYSTEM_CONSTEXPR explicit std_category(
boost::system::error_category const * pc ): pc_( pc )
./boost/system/error_code.hpp:232:41: note: non-constexpr constructor
'error_category' cannot be used in a constant expression
note: declared here
     error_category() noexcept;

I'm assuming this is because the compiler uses libstdc++ from gcc 4.8,
in which error_category() is not marked constexpr. Can this be fixed

Boost list run by bdawes at, gregod at, cpdaniel at, john at