Commit f9418f42 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

common.hpp: Fix MSVC build.

parent 3818cec8
......@@ -145,10 +145,10 @@ namespace VLC
template <int Idx, typename Ret, typename Opaque, typename... Args>
struct CallbackWrapper<Idx, Ret(*)(Opaque, Args...)>
{
using Wrapped = Ret(Opaque, Args...);
using Wrapped = Ret(*)(Opaque, Args...);
template <int NbEvents, typename Func>
static Wrapped* wrap(EventOwner<NbEvents>* owner, Func&& func)
static Wrapped wrap(EventOwner<NbEvents>* owner, Func&& func)
{
owner->callbacks[Idx] = std::make_shared<CallbackHandler<Func>>( std::forward<Func>( func ) );
return [](Opaque opaque, Args... args) -> Ret {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment