mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
fix(Exception): static assert to make sure that _HAS_EXCEPTIONS is set (#4668).
This commit is contained in:
@@ -103,6 +103,12 @@ private:
|
|||||||
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