C++ Logo

std-discussion

Advanced search

Re: std::string::insert and integer literal 0

From: Bo Persson <bo_at_[hidden]>
Date: Wed, 7 Dec 2022 20:34:10 +0100
On 2022-12-07 at 19:14, Lénárd Szolnoki via Std-Discussion wrote:
> This "not a defect" makes me sad. Fortunately none of the three most
> popular implementations have this issue.


Here "not a defect" means that the way it works (or not) was known all
along, so not a bug added by mistake.


>
>
> On 7 December 2022 17:12:17 GMT, Giuseppe D'Angelo via Std-Discussion
> <std-discussion_at_[hidden]> wrote:
>
> Hello,
>
> Il 07/12/22 16:19, Kilian Henneberger via Std-Discussion ha scritto:
>
> But if `std::string::const_iterator` is a class type, then the
> first overload is a better match and will be called.
>
>
> This ishttps://cplusplus.github.io/LWG/issue84 <https://cplusplus.github.io/LWG/issue84> .
>
> Thank you,
> --
> Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> <http://www.kdab.com>
> KDAB - The Qt, C++ and OpenGL Experts
>
>

Received on 2022-12-07 19:34:19