clang++ 3.8 and below requires a user-provided default constructor

This commit is contained in:
Peter Dimov
2018-01-22 17:39:29 +02:00
parent 9f5cbe223c
commit 19d5bf5f04

View File

@ -348,6 +348,12 @@ class generic_error_category: public error_category
{
public:
// clang++ 3.8 and below: initialization of const object
// requires a user-provided default constructor
BOOST_SYSTEM_CONSTEXPR generic_error_category() BOOST_SYSTEM_NOEXCEPT
{
}
const char * name() const BOOST_SYSTEM_NOEXCEPT
{
return "generic";
@ -360,6 +366,10 @@ class system_error_category: public error_category
{
public:
BOOST_SYSTEM_CONSTEXPR system_error_category() BOOST_SYSTEM_NOEXCEPT
{
}
const char * name() const BOOST_SYSTEM_NOEXCEPT
{
return "system";