Commit ee6606f5 authored by Krzysztof Kajrewicz's avatar Krzysztof Kajrewicz
Browse files

string: support erase in overload resolution

Call to erase(0) is ambiguous because literal 0 can be treated as integer or null-pointer constant.
Hence equally good candidates in overload resultion are:
- basic_string &erase(size_type index = 0, size_type count = npos)
- iterator erase(const_iterator pos)
We add helper functions to resolve the ambiguity
parent b3d4db1a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment