mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Fix build with broken libstdc++
This commit is contained in:
parent
e6b31930b6
commit
c576b6bc67
@ -28,8 +28,10 @@ public:
|
|||||||
: std::logic_error(__arg) {}
|
: std::logic_error(__arg) {}
|
||||||
explicit bad_optional_access(const char* __arg)
|
explicit bad_optional_access(const char* __arg)
|
||||||
: std::logic_error(__arg) {}
|
: std::logic_error(__arg) {}
|
||||||
bad_optional_access(const bad_optional_access&) noexcept = default;
|
// Remove explicitly defaulted copy constructor and assignment operator:
|
||||||
bad_optional_access& operator=(const bad_optional_access&) noexcept = default;
|
// noexcept specification doesn't work well with libstdc++
|
||||||
|
//bad_optional_access(const bad_optional_access&) noexcept = default;
|
||||||
|
//bad_optional_access& operator=(const bad_optional_access&) noexcept = default;
|
||||||
// Get the key function ~bad_optional_access() into the dylib even if not compiling for C++1y
|
// Get the key function ~bad_optional_access() into the dylib even if not compiling for C++1y
|
||||||
virtual ~bad_optional_access() noexcept {}
|
virtual ~bad_optional_access() noexcept {}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user