Issue in running threading example
-
Hello Everyone,
I am trying to run the multithreading c++ example from the following location in qt.
http://answers.opencv.org/question/80267/grab-and-process-multiple-frames-in-different-threads-opencv-semi-related/After writing the example i am getting the following error.
When i click on the error sample it is directing to the following location.
private:
template<size_t... _Idxs>
static void _Execute(typename _Target::element_type& _Tup,
integer_sequence<size_t, _Idxs...>)
{ // invoke function object packed in tuple
_STD invoke(_STD move(_STD get<_Idxs>(_Tup))...);
}I tried to search for the relevant solution and found one link indicating solution:
https://stackoverflow.com/questions/40353512/stdinvoke-no-matching-overloaded-function-found-error-given-in-vs-2015But exactly cound not understand the root cause of the issue and how to solve it in my case
-
@Kira Might be a silly question but does your compiler support c++11 and have it enabled in your project?
Also what is _STD?
Edit: Oh and what exactly is stored in the tuple? Are the functions stored there static? Because if not you need to pass their object's instance pointer to
std::invoke
. -
@ambershark : I'll will post the original code and the conversion in qt for more clarification.