Skip to content
Snippets Groups Projects
Commit 7b3d1e31 authored by Yohann Bearzi (Kitware)'s avatar Yohann Bearzi (Kitware)
Browse files

vtkThreadedCallbackQueue: adding missing Signature specialization

parent b451cf55
No related branches found
No related tags found
No related merge requests found
......@@ -326,6 +326,16 @@ struct vtkThreadedCallbackQueue::Signature<ReturnT (*)(ArgsT...)>
static constexpr std::size_t ArgsSize = sizeof...(ArgsT);
};
//=============================================================================
// For function pointers
template <class ReturnT, class... ArgsT>
struct vtkThreadedCallbackQueue::Signature<ReturnT (&)(ArgsT...)>
{
using ArgsTuple = std::tuple<ArgsT...>;
using InvokeResult = ReturnT;
static constexpr std::size_t ArgsSize = sizeof...(ArgsT);
};
//=============================================================================
// For functors
template <class FT>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment