added QSE_CPP_OVERRIDE

This commit is contained in:
hyung-hwan 2020-08-17 10:20:37 +00:00
parent f083bbe21f
commit 54d1197b1a
2 changed files with 6 additions and 1 deletions

View File

@ -44,6 +44,7 @@
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
#define QSE_CPP_EXPLICIT explicit
#define QSE_CPP_OVERRIDE override
/// The QSE_CPP_ENABLE_CPP11_MOVE macro enables C++11 move semantics
/// in various classes.
@ -69,6 +70,7 @@
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
#define QSE_CPP_EXPLICIT
#define QSE_CPP_OVERRIDE
#define QSE_CPP_CALL_DESTRUCTOR(ptr, class_name) ((ptr)->~class_name())
#define QSE_CPP_CALL_PLACEMENT_DELETE1(ptr, arg1) (::operator delete((ptr), (arg1)))
@ -81,6 +83,7 @@
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4)
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5)
#define QSE_CPP_EXPLICIT
#define QSE_CPP_OVERRIDE
#if defined(__BORLANDC__)

View File

@ -118,7 +118,9 @@ public:
typedef int (*ThreadRoutine) (Thread* thr);
// execute the given function in a thread.
virtual int start (ThreadRoutine rtn, int flags = 0) QSE_CPP_NOEXCEPT;
// this is supposed to hide Thread::start(int flags).
// in this class, the start() method must be given the ThreadRoutine point.
virtual int start (ThreadRoutine rtn, int flags = 0) QSE_CPP_NOEXCEPT QSE_CPP_OVERRIDE;
protected:
ThreadRoutine __tmprtn;