xcode - “attempt to use a deleted function” - what does that mean?

前端 未结 5 1965
一向
一向 2021-01-18 12:36

I am writing a C++ library in Xcode 4.2

One of my classes won\'t compile with this error : \"attempt to use a deleted function\".

There is no specific indica

5条回答
  •  情书的邮戳
    2021-01-18 13:31

    I had a similar message with threads (C++11). It turned out that I was passing the wrong number of parameters to the function called by the thread so the thread did not find any function suitable and gave that message.

提交回复
热议问题