File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ class CVTHook : public CMemory
143143public:
144144 using Function_t = R (*)(Args...); // Is the pointer‐to‐function type matching the signature of the virtual method.
145145
146+ CVTHook () = default ;
147+ CVTHook (const CVTHook &other) = delete ;
148+ CVTHook (CVTHook &&other) : CMemory(std::exchange(static_cast <CMemory &>(other), DYNLIB_INVALID_MEMORY)) {}
146149 ~CVTHook ()
147150 {
148151 if (IsHooked ())
@@ -238,6 +241,7 @@ class CVTFHook : public CVTHook<R, Args...>
238241{
239242public:
240243 using CBase = CVTHook<R, Args...>;
244+ using CBase::CBase;
241245 using Function_t = std::function<R (Args...)>; // Allowing lambdas or other callable objects that match R(Args...) to be used as the hook target.
242246
243247 void Clear () { CBase::Clear (); sm_callback = nullptr ; }
You can’t perform that action at this time.
0 commit comments