Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issue in running threading example
Forum Updated to NodeBB v4.3 + New Features

Issue in running threading example

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by
    #1

    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-2015

    But exactly cound not understand the root cause of the issue and how to solve it in my case

    jsulmJ 1 Reply Last reply
    0
    • KiraK Kira

      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-2015

      But exactly cound not understand the root cause of the issue and how to solve it in my case

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kira What error do you get?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      KiraK 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Kira What error do you get?

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by
        #3

        @jsulm :
        'std::invoke no matching overloaded function found'
        'Failed to specialize function template 'unknown-type std::invoke(Callable &&,_Types&&...)''

        A 1 Reply Last reply
        0
        • KiraK Kira

          @jsulm :
          'std::invoke no matching overloaded function found'
          'Failed to specialize function template 'unknown-type std::invoke(Callable &&,_Types&&...)''

          A Offline
          A Offline
          ambershark
          wrote on last edited by ambershark
          #4

          @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.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          KiraK 1 Reply Last reply
          1
          • A ambershark

            @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.

            KiraK Offline
            KiraK Offline
            Kira
            wrote on last edited by
            #5

            @ambershark : I'll will post the original code and the conversion in qt for more clarification.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved