mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Fixing function view yet again for clang.
This commit is contained in:
parent
8feb5931ad
commit
c39cada530
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ namespace vtil
|
|||
template<typename F> requires ( Invocable<F, Ret, Args...> && ( !Same<std::decay_t<F>, function_view> ) )
|
||||
function_view( F& functor )
|
||||
{
|
||||
obj = std::addressof( functor );
|
||||
obj = ( void* ) &functor;
|
||||
fn = [ ] ( void* obj, Args... args ) -> Ret
|
||||
{
|
||||
return ( *( F* ) obj )( std::forward<Args>( args )... );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue