mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
clang++ 3.8 and below requires a user-provided default constructor
This commit is contained in:
@ -348,6 +348,12 @@ class generic_error_category: public error_category
|
|||||||
{
|
{
|
||||||
public:
|
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
|
const char * name() const BOOST_SYSTEM_NOEXCEPT
|
||||||
{
|
{
|
||||||
return "generic";
|
return "generic";
|
||||||
@ -360,6 +366,10 @@ class system_error_category: public error_category
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
BOOST_SYSTEM_CONSTEXPR system_error_category() BOOST_SYSTEM_NOEXCEPT
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
const char * name() const BOOST_SYSTEM_NOEXCEPT
|
const char * name() const BOOST_SYSTEM_NOEXCEPT
|
||||||
{
|
{
|
||||||
return "system";
|
return "system";
|
||||||
|
Reference in New Issue
Block a user