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

前端 未结 5 1960
一向
一向 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:33

    To add to Carlos' answer, I had the right number of arguments but one of the arguments was being passed by reference. Adding ref() around the variable fixed it for me. See here.

提交回复
热议问题