220 13986 <CAFk2RUYibMpT0-h-C2SkqV7otS188D+rUJKoJgGTc0=TTM1dvQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default values for n4191 fold expressions
Date: Fri, 17 Oct 2014 22:14:22 +0300
Lines: 43
Approved: news@gmane.org
Message-ID: <CAFk2RUYibMpT0-h-C2SkqV7otS188D+rUJKoJgGTc0=TTM1dvQ@mail.gmail.com>
References: <997390c5-072b-407a-bce9-22a29fc5e228@isocpp.org>
	<CAOfiQqmu_AfO=Xpp-BybyM1sje0i14iCVe7fV7hGjLzRW6CTBw@mail.gmail.com>
	<346c989f-5000-450c-ae9e-ccd2fb22f1ee@isocpp.org>
	<54413B5E.4020800@gmx.net>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1413573272 3355 80.91.229.3 (17 Oct 2014 19:14:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 17 Oct 2014 19:14:32 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBDWVQWRAKGQEIWBMVCY@isocpp.org Fri Oct 17 21:14:24 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRBDWVQWRAKGQEIWBMVCY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBDWVQWRAKGQEIWBMVCY@isocpp.org>)
	id 1XfCym-0002Oq-Ko
	for gclcip-std-proposals@m.gmane.org; Fri, 17 Oct 2014 21:14:24 +0200
Original-Received: by mail-oi0-f71.google.com with SMTP id v63sf5741522oia.6
        for <gclcip-std-proposals@m.gmane.org>; Fri, 17 Oct 2014 12:14:23 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type:content-transfer-encoding;
        bh=D1s0RERBpHzZISdj28drLu0FcvDDMlFZdX5bq4qWz7s=;
        b=RTv6YBKoM9zo4V7gpfXEv13oKHKMoPuCtHBHXNX7wei43VHjCJLulC6J+e//MNX2sO
         3wBdsO+3W3OK8nE/PrnD4a+oI+EpkX4QafTjB9VaZ3WygPf8Wt2mngushmbPREt9bZZH
         +ahkum2z9sgNKCW9dQ2ZtRK+3SJ6zLfJHRzRvlWTUKFHkWLAV9WTf2bAhjioZurB6l1f
         GEjHncINhWkxCatVbaQ0ugnWhtU4eqeUJrSsSW61i01Oduw8N70lOsp+Md+swP1PQxGi
         mFckAJHZ6CAP+oWnDH8XMIqlQd0N9hOH8WpEDqETdgJcM89e/3P2JG7jB7YP2SSXxTmo
         SHwA==
X-Gm-Message-State: ALoCoQkslIHaJcjq60RAaV2jOfS9WpE5FAKW43DsiGmdqdPxjdISyf5ayXAAL68j7R2clvVYQ61Y
X-Received: by 10.43.133.131 with SMTP id hy3mr9608160icc.12.1413573263397;
        Fri, 17 Oct 2014 12:14:23 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.106.13 with SMTP id gq13ls418052obb.27.gmail; Fri, 17 Oct
 2014 12:14:22 -0700 (PDT)
X-Received: by 10.60.68.108 with SMTP id v12mr2628220oet.69.1413573262533;
        Fri, 17 Oct 2014 12:14:22 -0700 (PDT)
Original-Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com. [2607:f8b0:4003:c01::22c])
        by mx.google.com with ESMTPS id b191si2377199oid.11.2014.10.17.12.14.22
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 17 Oct 2014 12:14:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c01::22c as permitted sender) client-ip=2607:f8b0:4003:c01::22c;
Original-Received: by mail-ob0-f172.google.com with SMTP id vb8so1138346obc.17
        for <std-proposals@isocpp.org>; Fri, 17 Oct 2014 12:14:22 -0700 (PDT)
X-Received: by 10.182.125.165 with SMTP id mr5mr2618666obb.71.1413573262203;
 Fri, 17 Oct 2014 12:14:22 -0700 (PDT)
Original-Received: by 10.76.151.36 with HTTP; Fri, 17 Oct 2014 12:14:22 -0700 (PDT)
In-Reply-To: <54413B5E.4020800@gmx.net>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c01::22c as
 permitted sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:13986
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13986>

On 17 October 2014 18:53, Jens Maurer <Jens.Maurer@gmx.net> wrote:
> On 10/17/2014 09:12 AM, Sean Middleditch wrote:
>> On Wednesday, October 15, 2014 7:22:47 PM UTC-7, Richard Smith wrote:
>>
>>         while if it is a prvalue int this gives a string of length 1 con=
taining a nul character.
>>
>>
>>     Yes, there's some risk this might happen accidentally. (If you antic=
ipate the problem, you can write "auto s =3D (to_string(args) + ... + std::=
string());".) But it seems like a mistake that std::string implicitly conve=
rts from an int in a surprising way, and fixing that might be a better appr=
oach for this particular problem.
>>
>>
>> Can it be fixed without breaking user code?
>
> That's probably hard.
>
> We could have a
>    std::string(int) =3D delete
>
> constructor overload that catches literal "0", but
>
>   std::string(const char *)
>
> is certainly in widespread use.

See
https://groups.google.com/a/isocpp.org/d/msg/std-discussion/ZD0aGGkZjPk/cyo=
ND1x4VfUJ

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

.
