220 35100 <5949784.ta64GYsRuq@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Marking more std::string_view members noexcept
Date: Wed, 25 Oct 2017 16:09:33 -0700
Lines: 26
Approved: news@gmane.org
Message-ID: <5949784.ta64GYsRuq@tjmaciei-mobl1>
References: <3d03cd7d-2177-98fd-408d-f74b1f6a8552@gmail.com> <79ff7517-9d44-4770-8124-a2a036a2e6be@isocpp.org> <CAGg_6+Pv2BYcxMJ5aQ9uLb2qpgVZ3ThFjoWdKBNyZ4oNPm0A-A@mail.gmail.com>
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 1508972979 6583 195.159.176.226 (25 Oct 2017 23:09:39 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 25 Oct 2017 23:09:39 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBL5TYTHQKGQE3RUPT5I@isocpp.org Thu Oct 26 01:09:33 2017
Return-path: <std-proposals+bncBCB4TK757YBRBL5TYTHQKGQE3RUPT5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f199.google.com ([209.85.128.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBL5TYTHQKGQE3RUPT5I@isocpp.org>)
	id 1e7Unh-0000by-PT
	for gclcip-std-proposals@m.gmane.org; Thu, 26 Oct 2017 01:09:29 +0200
Original-Received: by mail-wr0-f199.google.com with SMTP id u97sf698585wrc.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 25 Oct 2017 16:09:37 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1508972977; cv=pass;
        d=google.com; s=arc-20160816;
        b=pxoYo6RyHayz2hh6+3mpS9AgYEQBEh85KEzZfdhskX+djdQiG58Py3ZanKCYobT2+d
         6qPVFh1b/47wkLHa5rQj/zUc1BHyjfZDtXBceZkB7+358bw0njhkELW+Amitizf8rajl
         fGtaksEFHde0AgQz9+xnevEMvyDYc0XjnXrwzVT5CPAsv53lvjdaKr9j97yNVGt+n6No
         LXkTd4dnCpL0g5kBchTw6gNAe//7uJYFwoiupmrRZvTCE9nuhnnk8KkYMaMMTde54Oe5
         PMbLIJijgeT0/A5NkhpiU7WiNx125z+/+4rgB4a2dj6tl/qgQvYxkwdj1PyF3Aa8YaFr
         xE0A==
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:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=gZHSf9aPoyFNdg1fYgiqhK/jrVlpv+RL3UgkETXyPoM=;
        b=qxuI4vPRjZ5aeFXV6ZfGkxyDiNh8QTnX2uuCfjKet7yzDCAtIFpES+NTj/Thwm9STZ
         XdbBA2+mzV99Lm50ph7l36w2R6gX2oDEKNBmC5/eDRUPCGpPW/T713MlQohLMhBzrpG5
         GqTspTDP87U8BzhpkwsR7B5Lq74+fdoRu/I5YHhB4uscG9Ftf+n383xppHN73hZ3Qyt7
         YFqNDPrdzMoMZ7SGhJr3f8LovMtog2C6mFO5ac3+XLnDk0huB32HNDLJqYSh2vYGCaZA
         ojaUAx5pDQMJCpJuz9uUcgAnZqaNvWaGI4onutBEMb/RQiVuMaVQ083Wou887z6EKdHW
         wlxg==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :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=gZHSf9aPoyFNdg1fYgiqhK/jrVlpv+RL3UgkETXyPoM=;
        b=C4+Su3t0PaDRHjyrbXh4UcFEeDeKhMwiZCdEXtfB5e9AyurWWBydIj71QA7KeG/sLY
         ox36ihFy5/70GhQ/8ZpA0NLhQI/pUQJtDhzxiYboLyGQP2oikGqRmmNpjY4p2D/lZjoq
         NIse92qNGjr4DLjEnorfk5Gk2m1igO92dDHQgeaYcahgQooKKT50suwFJJYzfBk80UIU
         xhgvHuJCJdfO5EF/SZmgNlqraYj3xNV+ENC39uvh5VWRpeE7CcZzmZjrBKqd298l71Bm
         d1/E+yygmKbj+W9BbBVtIsjyTyWRyl908f55nf74OiPhTHUgVtN0dddOllDDno2/TmSO
         +1LQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=gZHSf9aPoyFNdg1fYgiqhK/jrVlpv+RL3UgkETXyPoM=;
        b=Hc5p38MIetlBPY4iafDa97JPC+mnYXxyO5XuyYxd1kkEiZjnSg+SFcyDdGSw9tF8r7
         PdPJfASQwE58dTpWsVKi+ut5BNOsE8D6FZ6kE15MCfS++QpDOSzMuXwk6RxYq91B/OR7
         i+2Xca1S6+yMu5STJEda9DOULpMlglqqG0hyuyodX2nCBvFHa988+RQizgaLenP2b80Z
         CnUCyo1wHecqpM9lLiBR8sYCz8SwD3LC/Vf9UVbNnmS1uXPBbKQQ2JNVySUHczZzMzJ3
         V2yBIpLnRkpqyo00vuSsdPjUcD0JohpsvKRZUDeevnErd0dPcPvmXs7LT8LYXGFL7Fn7
         wpfA==
X-Gm-Message-State: AMCzsaVTZSkrQFAoub01iMB8HbRFKl2+CSMXTWLBn9CqE3HxE7Dwo4TE
	0q6Oi8d5i8ETjVOERmlFsFZjdw==
X-Google-Smtp-Source: ABhQp+T+5yXPr339KOiYI5bJyxnvoX9mFEZKj44NnTWWjaqrjKBsx61Y0Y4MauKcrsrVySQFFwGUDw==
X-Received: by 10.28.8.12 with SMTP id 12mr367699wmi.31.1508972977138;
        Wed, 25 Oct 2017 16:09:37 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.191.29 with SMTP id p29ls1089730wmf.8.canary-gmail; Wed, 25
 Oct 2017 16:09:35 -0700 (PDT)
X-Received: by 10.28.93.200 with SMTP id r191mr3244001wmb.19.1508972975780;
        Wed, 25 Oct 2017 16:09:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1508972975; cv=none;
        d=google.com; s=arc-20160816;
        b=WYBWq3rqBXp2P4NcwkCPnUnHiGl3iAJHvf7SIegNF+VroWrco1daALk/mXqkkJDL96
         c+7yNdIzNiBquWQla1lCD8Qd/Lu+CXINuBcxwuVjia/iV2YaabWMQ+pF3q/DlIftQELz
         IdXQ1j8YiEdVhx8yLep8O7Udls11quYEKMw9OGcrhYSbpIM0nQLdT65aQ2EdZsevmbkd
         Jv4YU2Q6gkiQbzzOksPLvTMHKFrJk/ckG2UrzNNAPai+d9/WpO/KY9TFA/FX6TyELA4M
         B1LUveOwlGG11a//AK0BMZAm2C8PV8oqfLPDVfShCV9IcYQNwCYKUQXq/54JBxeQeao0
         UXDQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=G29aJIn5HvmTsr65jJaCpxira4B41YwaEEabnVcjQt0=;
        b=0SuYXduS+WH/M/VbXE2nhfqC+/6rjYUmMPgrowaEuluKeaUHKin6aMYsuO0QPA3afs
         RhoGG7v632FlYdN0Sy8qXRBmq/4QHJME/LAp7TaaRYlJELFUUZVhdmdJdZEWSsnH3SZ1
         hR2IWD8S+dwv+gXLZ2o9HrCbmsyXjZm8atYNBqiMITUrjZDf7/jqIrArFejRwwCuJsmi
         TIGLzxdOnYBoLir3Za+ZLA0qhmfrW8HGa+JPFRSBZPsCCpCbiKk4jF0s/2YTrptU4zMR
         t7MRRBtgIxtjr1p25PgQaO3hyF7sk43fRAJsTYY+Hb6yMlKMmkOp26eDFObacXJP81+s
         VOsQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id b59si2848631wrd.359.2017.10.25.16.09.35
        for <std-proposals@isocpp.org>;
        Wed, 25 Oct 2017 16:09:35 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [192.55.54.44])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 573F011B5C4
	for <std-proposals@isocpp.org>; Wed, 25 Oct 2017 16:09:35 -0700 (PDT)
In-Reply-To: <CAGg_6+Pv2BYcxMJ5aQ9uLb2qpgVZ3ThFjoWdKBNyZ4oNPm0A-A@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:35100
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35100>

On Wednesday, 25 October 2017 14:02:33 PDT Nevin Liber wrote:
> On Wed, Oct 25, 2017 at 3:07 PM, <pavel.kryukov@phystech.edu> wrote:
> > Hi
> > 
> > If there was a ctor from array reference, would it be noexcept?
> > 
> > template<size_t N>
> > constexpr basic_string_view(const charT(&str)[N]) noexcept;
> 
> It hasn't been proposed, has it?
> 
> My guess would be no, since there is a precondition that str[N-1] == 0,
> giving it a narrow contract.

Why would it have such a precondition?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/5949784.ta64GYsRuq%40tjmaciei-mobl1.

.
