mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
fix(Exception): static assert to make sure that _HAS_EXCEPTIONS is set (#4668).
This commit is contained in:
parent
aab4058bae
commit
3c01eec7cf
@ -100,9 +100,15 @@ protected:
|
||||
private:
|
||||
std::string _msg;
|
||||
Exception* _pNested;
|
||||
int _code;
|
||||
int _code;
|
||||
};
|
||||
|
||||
#if defined(_HAS_EXCEPTIONS)
|
||||
// Size of Poco::Exception depends on the exception settings (like _HAS_EXCEPTIONS)
|
||||
// that might influence size of std::exception from which Poco::Exception is derived from.
|
||||
// It is expected that Poco libraries and application using Poco have the same settings.
|
||||
static_assert(_HAS_EXCEPTIONS != 0);
|
||||
#endif
|
||||
|
||||
//
|
||||
// inlines
|
||||
|
Loading…
Reference in New Issue
Block a user