Skip to content
New issue

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

basic_string.h 中 compare(size_type pos1, size_type count1, const_pointer s) const 方法逻辑错误 #173

Open
elsa-elsa-elsa opened this issue Jan 1, 2025 · 0 comments

Comments

@elsa-elsa-elsa
Copy link

compare(size_type pos1, size_type count1, const_pointer s) const 方法中return compare_cstr(buffer_ , n1, s, n2); 中第一个参数不对,应该是buffer_ + pos1 ,不应该是buffer_ ,其他类似的compare方法同理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant