Skip to content

Commit 53b5365

Browse files
committed
Adapt vthook to old C++17
1 parent c09a625 commit 53b5365

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/dynlibutils/vthook.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class CVTMHookBase
282282
{
283283
public:
284284
using Element_t = T;
285-
using Function_t = Element_t::Function_t;
285+
using Function_t = typename Element_t::Function_t;
286286

287287
public:
288288
bool IsEmpty() const noexcept { return m_storage.empty(); } // Returns true if no hooks are currently stored.
@@ -508,7 +508,7 @@ class CVTHookAutoBase<T, METHOD> : public T<R, C*, Args...>
508508
using CBase::CBase;
509509

510510
[[ always_inline ]] // Wend4r (Linux): don't allow typeinfo/rtti to be generated for templated C argument.
511-
void Hook(CVirtualTable pVTable, CBase::Function_t &&func) noexcept
511+
void Hook(CVirtualTable pVTable, typename CBase::Function_t &&func) noexcept
512512
{
513513
CBase::Hook(pVTable, GetVirtualIndex<METHOD>(), std::move(func));
514514
}

0 commit comments

Comments
 (0)