Click here to Skip to main content
15,611,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC MDI Change tab styles after Addview is completed via Property Sheet Pin
kittmaster21-Mar-22 10:55
kittmaster21-Mar-22 10:55 
QuestionQtConcurrent - how do I verify - "all the ducks in the row "? revised Pin
Member 1496877121-Mar-22 10:28
Member 1496877121-Mar-22 10:28 
AnswerRe: how do I verify - "all the ducks in the row "? Pin
k505421-Mar-22 11:09
mvek505421-Mar-22 11:09 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877121-Mar-22 15:28
Member 1496877121-Mar-22 15:28 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan21-Mar-22 22:38
mveRichard MacCutchan21-Mar-22 22:38 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877124-Mar-22 10:36
Member 1496877124-Mar-22 10:36 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505424-Mar-22 11:06
mvek505424-Mar-22 11:06 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877124-Mar-22 13:25
Member 1496877124-Mar-22 13:25 
OK, I made a typo.
Irregardless - I think it is relevant that I said one of the calls works and the other does not .
I am getting nowhere in QT forum , and I do not care to discuss it.
I have been thru "try this and try that ' with my test code.

So - let's cut thru the chase
here is my test code snippet


           THIS ONE WORKS 
           so the syntax is OK 

            status = hci_inquiry(
                        dev_id,
                        len,
                        max_rsp,
                        NULL,
                        &ii,
                        flags);
          
             
        THIS ONE DOES NOT WORK 


        QFuture<void> future_hci = QtConcurrent::run(
                    std::bind(
                        hci_inquiry,
                        dev_id,
                        len,
                        max_rsp,
                        NULL,
                        &ii,
                        flags)
                    );
/


What is the difference ?

and this is first of series of errors posted


<pre>/media/q5/MDI/QT_PROGRAMS/QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentstoredfunctioncall.h:60: error: no match for call to ‘(std::_Bind<int (*(int, int, int, long int, inquiry_info**, int))(int, int, int, const unsigned char*, inquiry_info**, long int)>) ()’
In file included from ../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentrun.h:49,
                 from ../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/QtConcurrent:16,
                 from /mnt/sde5/QT_PROGRAMS_FULL/MDI_BT/MDI_BT/SUB_FT857/mainwindow_sub_ft857.cpp:15:
../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentstoredfunctioncall.h: In instantiation of ‘void QtConcurrent::StoredFunctorCall0<T, FunctionPointer>::runFunctor() [with T = int; FunctionPointer = std::_Bind<int (*(int, int, int, long int, inquiry_info**, int))(int, int, int, const unsigned char*, inquiry_info**, long int)>]’:
../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentstoredfunctioncall.h:60:10:   required from here
../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentstoredfunctioncall.h:60:57: error: no match for call to ‘(std::_Bind<int (*(int, int, int, long int, inquiry_info**, int))(int, int, int, const unsigned char*, inquiry_info**, long int)>) ()’
   60 |     void runFunctor() override { this->result = function(); }
      |                                                 ~~~~~~~~^~







and this is more

<pre>/usr/include/c++/11/functional:464: error: no type named ‘type’ in ‘struct std::result_of<int (*&(int&, int&, int&, long int&, inquiry_info**&, int&))(int, int, int, const unsigned char*, inquiry_info**, long int)>’
/usr/include/c++/11/functional:498:9:   required from ‘void QtConcurrent::StoredFunctorCall0<T, FunctionPointer>::runFunctor() [with T = int; FunctionPointer = std::_Bind<int (*(int, int, int, long int, inquiry_info**, int))(int, int, int, const unsigned char*, inquiry_info**, long int)>]’
../../../QT/15/5.15.2/gcc_64/include/QtConcurrent/qtconcurrentstoredfunctioncall.h:60:10:   required from here
/usr/include/c++/11/functional:464:15: error: no type named ‘type’ in ‘struct std::result_of<int (*&(int&, int&, int&, long int&, inquiry_info**&, int&))(int, int, int, const unsigned char*, inquiry_info**, long int)>’
  464 |         using _Res_type_impl
      |               ^~~~~~~~~~~~~~




what are these errors telling me ?


I DO NOT KNOW


if I knew I could fix it , duh...

I am asking for help...
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan24-Mar-22 21:49
mveRichard MacCutchan24-Mar-22 21:49 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877125-Mar-22 10:17
Member 1496877125-Mar-22 10:17 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505425-Mar-22 11:26
mvek505425-Mar-22 11:26 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877125-Mar-22 14:25
Member 1496877125-Mar-22 14:25 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877125-Mar-22 16:33
Member 1496877125-Mar-22 16:33 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505428-Mar-22 5:26
mvek505428-Mar-22 5:26 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877128-Mar-22 13:27
Member 1496877128-Mar-22 13:27 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan25-Mar-22 22:53
mveRichard MacCutchan25-Mar-22 22:53 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
trønderen25-Mar-22 12:58
trønderen25-Mar-22 12:58 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505426-Mar-22 5:07
mvek505426-Mar-22 5:07 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan25-Mar-22 22:51
mveRichard MacCutchan25-Mar-22 22:51 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877128-Mar-22 14:44
Member 1496877128-Mar-22 14:44 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877129-Mar-22 6:05
Member 1496877129-Mar-22 6:05 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505429-Mar-22 6:55
mvek505429-Mar-22 6:55 
QuestionHelp with calculating percentage in C Pin
ForNow20-Mar-22 5:37
ForNow20-Mar-22 5:37 
AnswerRe: Help with calculating percentage in C Pin
k505420-Mar-22 5:54
mvek505420-Mar-22 5:54 
GeneralRe: Help with calculating percentage in C Pin
ForNow20-Mar-22 6:47
ForNow20-Mar-22 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.