mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
Problem: inconsistent polymorphic inheritance
Solution: consistently use virtual, override and final
This commit is contained in:
@@ -20,6 +20,22 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined ZMQ_OVERRIDE
|
||||
#if defined ZMQ_HAVE_NOEXCEPT
|
||||
#define ZMQ_OVERRIDE override
|
||||
#else
|
||||
#define ZMQ_OVERRIDE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined ZMQ_FINAL
|
||||
#if defined ZMQ_HAVE_NOEXCEPT
|
||||
#define ZMQ_FINAL final
|
||||
#else
|
||||
#define ZMQ_FINAL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined ZMQ_DEFAULT
|
||||
#if defined ZMQ_HAVE_NOEXCEPT
|
||||
#define ZMQ_DEFAULT = default;
|
||||
|
||||
Reference in New Issue
Block a user