We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const Buffer& Buffer::operator=(const Buffer& other) { Free(); ShallowCopy(other); return *this; }
你好,请问这个函数是否没有考虑 a=a这种自我赋值的情况呢
The text was updated successfully, but these errors were encountered:
不用加个this=&other判断么
Sorry, something went wrong.
Yeah, it is a bug. Could you open a pull request ?
因为这个不是个通用库,所以,kids 里面没有这种情况,就没有虑这个问题。
No branches or pull requests
const Buffer& Buffer::operator=(const Buffer& other) {
Free();
ShallowCopy(other);
return *this;
}
你好,请问这个函数是否没有考虑 a=a这种自我赋值的情况呢
The text was updated successfully, but these errors were encountered: