mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
fix(Exception): static assert to make sure that _HAS_EXCEPTIONS is set (#4668).
This commit is contained in:
@@ -100,9 +100,15 @@ protected:
|
|||||||
private:
|
private:
|
||||||
std::string _msg;
|
std::string _msg;
|
||||||
Exception* _pNested;
|
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
|
// inlines
|
||||||
|
|||||||
Reference in New Issue
Block a user