This error message occurs when the compiler cannot find a suitable overload of the push_back function for the arguments you have passed.

The most common cause of this error is that you are trying to push an object of an incompatible type into a container. For example, if you have a vector of integers and you try to push a string into it, the compiler will generate this error message.

Another possible cause of this error is that you are trying to call the push_back function on an object that does not support it. For example, if you try to call push_back on a pointer, you will get this error message because pointers do not have a push_back function.

To resolve this error, check that the object you are trying to push into the container is of the correct type and that the container supports the push_back function

no matching member function for call to push_back

原文地址: https://www.cveoy.top/t/topic/g9cA 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录