Commit 001ab35b authored by Krzysztof Kajrewicz's avatar Krzysztof Kajrewicz
Browse files

string: support insert in overload resolution

Call to insert(0, <size_type>, <CharT>) is ambiguous because literal 0
can be treated as integer or null-pointer constant.
Hence equally good candidates in overload resultion are:
- basic_string &insert(size_type index, size_type count, CharT ch)
- iterator insert(const_iterator pos, size_type count, CharT ch)
We add helper functions to resolve the ambiguity
parent a6cc595f
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