220 33828 <CAA7U3HP4tfei7whDNuHJDgvwQpe7z-DNQHNSJaqV+Y+bfSThnQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: string_view for fstream::open()
Date: Fri, 11 Aug 2017 19:26:33 +0200
Lines: 34
Approved: news@gmane.org
Message-ID: <CAA7U3HP4tfei7whDNuHJDgvwQpe7z-DNQHNSJaqV+Y+bfSThnQ@mail.gmail.com>
References: <cb7b55ab-7113-4d99-949b-8568627d0b7f@isocpp.org>
 <ebf29cbb-b62d-40e2-9fc7-4527bd5db2df@isocpp.org> <CAA7U3HNUMs_QRbxqm8kS41UNkNN6D_2AJWVOk+PCwgfYM2mnjg@mail.gmail.com>
 <8213093.ESMYL9sCCc@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1502472397 2161 195.159.176.226 (11 Aug 2017 17:26:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 11 Aug 2017 17:26:37 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5NB45SSABBBSWRW7GAKGQE6R4MPPY@isocpp.org Fri Aug 11 19:26:30 2017
Return-path: <std-proposals+bncBC5NB45SSABBBSWRW7GAKGQE6R4MPPY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f72.google.com ([209.85.214.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5NB45SSABBBSWRW7GAKGQE6R4MPPY@isocpp.org>)
	id 1dgDhe-00009K-5Y
	for gclcip-std-proposals@m.gmane.org; Fri, 11 Aug 2017 19:26:30 +0200
Original-Received: by mail-it0-f72.google.com with SMTP id e202sf50013621itc.8
        for <gclcip-std-proposals@m.gmane.org>; Fri, 11 Aug 2017 10:26:36 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502472396; cv=pass;
        d=google.com; s=arc-20160816;
        b=SzZFc4ELyyZOMY4cd0szWxdphm0iS9aJCbfsIljWnThnQmZPgXQen0E4s3K7tkKkn/
         bOnfAPLZigWakKv4V6zTxzEK4rzxPr4msqhCDSPTNwSayJak7gF3pTN8Bbqk/uhYsonr
         CB3p63C4vHBgDuvjrxlegz/YP2oR/5dR4QUOo00gDwzzZfI2CHzZA5XtR+zSxy1d5Ql1
         8/MKtOWc+zAZmCuJGtnVH3aUZJq9snxpNJPRTSHtPrW/qVxOBO1j1tyImviO5b3iSkTv
         TQAbWvKK974ffqrzmz4vXhyzJfa3pJ5f6inbXeZqq4da2q4f2wEUK71KiqAUiHbqVVnR
         g3PQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=uneD5IHic0jzEZXS08HGtgdDuAOY5DFEG3xujhhNdm0=;
        b=elCqRtKET1KBPZqtZ6uDsykzFxwr+TnAjTpn7tKTacrWrvfvRsLwA+lIc2PgfsoNdS
         qMW9dJnnj4OBdnu/TLD/i82yI+SVd9aai23qX2IgUA/lS0ShowymiX+6hzaX2yvgbCU3
         OwEaxrnXScDfDmBrF6cQNQKTZkw7OlBPoTNS1J8AZjmQEADjEEDYMwrPGxnYtZ2YDWIS
         LoI5MT8/pt25f04ST6oyEUY/0P9o33is8xwMpovrvk08eEbM1hyuzV/L0B23dY/LrTPl
         7tx6Kx9GYnO6pOK3kh/FQf6Gz1FgXDevuPQgSHj2PWk4ze8n2gA5mNHpnVP4U+RtR83j
         BGzw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=B1zQGcXP;
       spf=pass (google.com: domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) smtp.mailfrom=olafvdspek@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject: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;
        bh=uneD5IHic0jzEZXS08HGtgdDuAOY5DFEG3xujhhNdm0=;
        b=b6zovDkxamVE//jgQ7MbRjFLAN1TvZRSmASnALCsNYcd5yRkaMae/vVPsP6yZMVzta
         bwXm5+GoNHWL36qIIeB/dcd7aEsUmqoI5Vpxc9mFwXITpgvVqBMWPC2DkEW2bZ1XpzD1
         w5yHQPrCV+AzEI4SMd2YLndrdsYI5Ywa/bTZNzpyP8CR9woP8OpLyNV2DxbQjiYIsMpq
         48Y3ys1SlOYCLEWndsR1RgHKYciL05o8q+zfb/GViL9OEAJ+aj1J1cqBih6Gp3pLgEYC
         jxMvRj1vzricsogofg0gEIKY0zREDrEtrO1KGPHdLOxk0M1CuLYrgFTACxelIV08vaaz
         AD3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=uneD5IHic0jzEZXS08HGtgdDuAOY5DFEG3xujhhNdm0=;
        b=Wdsg81qlgWBKEyquMms9vFUS5MuKP+GsvpAzv4PQ2AroQoQGfu18rKO8TTU+GkWQr5
         sbStx4o56MNKEkDvaJXV8yTLWN01U+p74sV7UIbs31rPib1gCXBiPrcPAq/ODO/rnBA4
         3GVUCHEQayMf2QV3AeWygo0XlIUjHAo9KCJ4nV7+Svp2kaqP4mxrTtuo93jECxozvD7O
         wyHhVkhC/+daRc9zLPmqyqf9BqYtiNKQEzpT003sbVlpa2Gd7qSzXeGyYRwuU3jmiuDA
         18WZtGwH+rgJHfg2npxyRj6RnL22Eu6x5NnnvQTWHoBD+u0nHywRUMJAgdqZqGB5XfK/
         zqGQ==
X-Gm-Message-State: AIVw1124bn+bn9UTcRogRMz+ahTCT6i3XYrlFxAvJCz+FOF8lzSJ4RdI
	FVqdkVJGJTbUlH//
X-Received: by 10.36.85.204 with SMTP id e195mr6092008itb.8.1502472396031;
        Fri, 11 Aug 2017 10:26:36 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.18.141 with SMTP id 13ls1476490ios.7.gmail; Fri, 11 Aug
 2017 10:26:34 -0700 (PDT)
X-Received: by 10.200.42.35 with SMTP id k32mr24569578qtk.136.1502472394816;
        Fri, 11 Aug 2017 10:26:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502472394; cv=none;
        d=google.com; s=arc-20160816;
        b=jdBOPf/kgYpI0TPkj+Mp1MtIjfBrgg19nZ/6buDMXRb6g8DVY2QN7R+qXlD2WO+bv1
         WZq+qdgKKXVTcELDLUeoaVVa+5tzhSaTFhCrpnia4Sw7VMYqhd0gpZWQpzBlI1jpHYFy
         7WwHd5UJEa7U6gn4IZz9kFAl/IJWUzJjc1gsMkp5SgpyOyrPrCk8rZljk1Em91UeiTRZ
         zK8ybs9jR3z3DpnakdVd88tYB9pM6G+DyNSweDClh2NfHRFuvSNibq6krj7cn0IEtgvB
         OoJejRoHCUTlyTK1ElTb2rOjdQ9rY4DT0mmH4+J78JyV56moxnbW+NCo8+t28LK3IJnh
         Csvw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=BxWmuQCcK2VCy1qWVHMO8PUZ3uwOSowcwbrMJtbx+OU=;
        b=rTGoyEbFhUajpzFqZjrJtsLgemSaa6/tphpLgXKuaAHZ6TWqwHPpkdUSGdrEUUa7bq
         pXkqAgB0mdeif5XDEnv+T0XHd5ykZq6iN/8dPKB61pZltjnvSsFPgiVBO5vO2+jC/QzW
         tj3VMAPl1kvkNr8qcjHT7q99ruqUhfwB0uTe+ZBVesl1KYLyUa6XBIXDFoB3MnRgOTO9
         741Fp8dvo7aldzgulxj5no1kTa4eU3ntYCALOPGzriXimzo3HJ5JDqDRe8+7N8FVYNLg
         CMdqZZvn1ED/Bvm6eh0mg8YqLtAfdKvav1rk1y3FphC1MnCHqYIY5OjlfDA6v/wZ5YS6
         q+fA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=B1zQGcXP;
       spf=pass (google.com: domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) smtp.mailfrom=olafvdspek@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-qt0-x232.google.com (mail-qt0-x232.google.com. [2607:f8b0:400d:c0d::232])
        by mx.google.com with ESMTPS id 28si1206068qtn.542.2017.08.11.10.26.34
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 11 Aug 2017 10:26:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c0d::232 as permitted sender) client-ip=2607:f8b0:400d:c0d::232;
Original-Received: by mail-qt0-x232.google.com with SMTP id a18so24888309qta.0
        for <std-proposals@isocpp.org>; Fri, 11 Aug 2017 10:26:34 -0700 (PDT)
X-Received: by 10.200.46.7 with SMTP id r7mr24698580qta.42.1502472394359; Fri,
 11 Aug 2017 10:26:34 -0700 (PDT)
Original-Received: by 10.12.174.87 with HTTP; Fri, 11 Aug 2017 10:26:33 -0700 (PDT)
In-Reply-To: <8213093.ESMYL9sCCc@tjmaciei-mobl1>
X-Original-Sender: olafvdspek@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=B1zQGcXP;       spf=pass
 (google.com: domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c0d::232
 as permitted sender) smtp.mailfrom=olafvdspek@gmail.com;       dmarc=pass
 (p=NONE sp=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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:33828
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33828>

2017-08-11 18:34 GMT+02:00 Thiago Macieira <thiago@macieira.org>:
> On sexta-feira, 11 de agosto de 2017 02:16:19 PDT Olaf van der Spek wrote:
>> > The requirement in order to provide defined behaviour that the character
>> > after the view must be readable is publicly documented.
>>
>> Ouch. IMO that's not a reasonable requirement / interface.
>>
>> > Failure by the end
>> > user to ensure this leads to UB, specifically, a segfault.
>>
>> What could the committee do about this?
>
> Why should the committee do something about it?

I don't know..
Niall suggested the committee could do something about it so I'm
wondering what it is they could do.

>         void *ptr = mmap(nullptr, 4096, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
>         std::string_view(static_cast<char *>(ptr), 4096);
>
> The character after the end of the string is not readable. Why do you want me
> to have 100% overhead?

I don't
-- 
Olaf

-- 
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 email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAA7U3HP4tfei7whDNuHJDgvwQpe7z-DNQHNSJaqV%2BY%2BbfSThnQ%40mail.gmail.com.

.
