mirror of
https://github.com/Naios/continuable.git
synced 2025-12-11 22:19:54 +08:00
Fix detection of mutable function pointers
This commit is contained in:
parent
f0f1d3fc92
commit
836facdcdf
@ -64,16 +64,26 @@ namespace fu
|
||||
struct unwrap_function_impl<std::tuple<_RTy, _ATy...>>
|
||||
: unwrap_function_impl<_RTy(_ATy...)> { };
|
||||
|
||||
/// Function pointers
|
||||
/// Const function pointers
|
||||
template<typename _RTy, typename... _ATy>
|
||||
struct unwrap_function_impl<_RTy(*const)(_ATy...)>
|
||||
: unwrap_function_impl<_RTy(_ATy...)> { };
|
||||
|
||||
/// Class Method pointers
|
||||
/// Mutable function pointers
|
||||
template<typename _RTy, typename... _ATy>
|
||||
struct unwrap_function_impl<_RTy(*)(_ATy...)>
|
||||
: unwrap_function_impl<_RTy(_ATy...)> { };
|
||||
|
||||
/// Const class method pointers
|
||||
template<typename _CTy, typename _RTy, typename... _ATy>
|
||||
struct unwrap_function_impl<_RTy(_CTy::*)(_ATy...) const>
|
||||
: unwrap_function_impl<_RTy(_ATy...)> { };
|
||||
|
||||
/// Mutable class method pointers
|
||||
template<typename _CTy, typename _RTy, typename... _ATy>
|
||||
struct unwrap_function_impl<_RTy(_CTy::*)(_ATy...)>
|
||||
: unwrap_function_impl<_RTy(_ATy...)> { };
|
||||
|
||||
/// Pack in fu::identity
|
||||
template<typename _RTy, typename... _ATy>
|
||||
struct unwrap_function_impl<identity<_RTy, _ATy...>>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user