mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05: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) {}
|
||||
explicit bad_optional_access(const char* __arg)
|
||||
: std::logic_error(__arg) {}
|
||||
bad_optional_access(const bad_optional_access&) noexcept = default;
|
||||
bad_optional_access& operator=(const bad_optional_access&) noexcept = default;
|
||||
// Remove explicitly defaulted copy constructor and assignment operator:
|
||||
// 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
|
||||
virtual ~bad_optional_access() noexcept {}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user