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

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

    For me, the issue was that one of the arguments was a pointer, and I passed NULL directly as an argument. To solve this, I simply created a new NULL pointer which I passed to the function as an l-value instead.

提交回复
热议问题