220 35116 <1931282.giciDSTxGt@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: Thu, 26 Oct 2017 09:09:32 -0700
Lines: 23
Approved: news@gmane.org
Message-ID: <1931282.giciDSTxGt@tjmaciei-mobl1>
References: <3d03cd7d-2177-98fd-408d-f74b1f6a8552@gmail.com> <3446274.dRsjijLxpX@tjmaciei-mobl1> <a82f7b048d91673203c75fa04e98f481@kdab.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 1509034196 25378 195.159.176.226 (26 Oct 2017 16:09:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 26 Oct 2017 16:09:56 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBQERZDHQKGQE3YP6SOQ@isocpp.org Thu Oct 26 18:09:49 2017
Return-path: <std-proposals+bncBCB4TK757YBRBQERZDHQKGQE3YP6SOQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBQERZDHQKGQE3YP6SOQ@isocpp.org>)
	id 1e7kin-0004AN-Db
	for gclcip-std-proposals@m.gmane.org; Thu, 26 Oct 2017 18:09:29 +0200
Original-Received: by mail-wm0-f72.google.com with SMTP id z77sf2069510wmc.16
        for <gclcip-std-proposals@m.gmane.org>; Thu, 26 Oct 2017 09:09:37 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1509034177; cv=pass;
        d=google.com; s=arc-20160816;
        b=BJUgX8Rpz3hAos4L1pXAeL5y4WfDiyvj6JcClV9W5hqplVC90iubM3AVhlLvMxlpFm
         IcAA8zqhGhte6ui4zY+wjT80Bu+rV/9Z21NxLUDIUyEqDCv/IYIBT9yWNs5Qp/ZEA09V
         e+sWtwmMZyR72x6cdWBf2iHBJEwrJx/rpIER9uqzaNivhboKLms1W4uClrVakDCwH046
         D/GUfVoZRqk48o8IUooBnuDymIeY+/oDe1AvoNXiysewYtlSGvvYG3mGbHBe7fk2vNtZ
         vnmWReEk5KIM/bid4XHpDxN/+nkqqk8MX78vCeRan1WlVb2nwb1LfsE8214e1U/3aoSk
         7J1A==
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=K1mpw8uR/PVYc8ftkAn1+9bZGsvVl9kNyhQHa9kdYbM=;
        b=iXloFWQRrXCpHldfWfCZmB8cmMKDo2hW85k+oO5hhth51vuH2MHheBgx3DL2F4ybTj
         OkW1o6kK75zaFh4cLWaPFveFcdh4rIiHctCIdomzsvz26ZTzC4UzhiezNOchFyq0ucis
         HuYFlC+/TI7HDkFnLFZU63EXi6im9L8hykUryvncEmGVVwSviLLfatSGsH6KxpqG4QOU
         qb2tu449haatJZ/I3cJdqycRJWFOOuNMiZdlpDHOFR4PzHqmzvMDSJBBsQ0MemFVl5Oz
         t4KPxTeKCJerxoZYcDWNo+z/MesECtnMlbheJk7jlnxY525Dp2t9vUvPUVq2Pj86NWls
         +fpg==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 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=K1mpw8uR/PVYc8ftkAn1+9bZGsvVl9kNyhQHa9kdYbM=;
        b=WZ/UX43+yxs3XIcY1RJHZ7zLbIJRGZMKQAvqUpdYIay2dCPR8khD6XOcs3zaEODBif
         78kTieqB8V9TlHUKgEcibaUxVPR+oGSTuSG3Qme7lvp7g7U5mX48lC+/wjmI21WI78J4
         /9q/bng4HrTDb+/LF7kWN2XP2TzZu7bPl6niOiHWNrTNc0+w3DKqvVVIRR48Q7sCkz8g
         kFjBX5Agg31xz7vL22HhAUcD9rx7T+uHaaXQ5sWyJHSmlZeHlIuoI8jiWkfVyjWjY576
         FUntr9w3bpPZnll1D6Lz9/veAbXCrwaKlsuX45lTtn48EKkdc0yqeOCcs/DPimr9KwFO
         wxRg==
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=K1mpw8uR/PVYc8ftkAn1+9bZGsvVl9kNyhQHa9kdYbM=;
        b=C/4+NzkTKMkntSOW8puNHBX3lPFZiQQaggHYnDjLLlEYJpJPVn89vGo4yEPMp+Wlkl
         JynvXpEBrQd+uHFWyrtpF9ZEDB5CuElYjMsXA8KBfR/2YXgwx+pxhXiyEzGPBbZBMMft
         LczDkxLcvfdpCTE7pLKtL7/+WVzB/3G9H0Im55eoIemz75Z1u7BfAcM0+W21oxc9f0EL
         d2HwR96Fj0KJYc8wfRe5Gd2rBD0xvTIJZLncm9Vc0Gvq6nI6QYF5R3CHKYHT1T9tdf2/
         TiXk0w5If4qqpyTxhyoz9DjZIPpX8U8ujeAIO7JB7V/mttFnPL7JfuUrLAou+mjCtItM
         /7mg==
X-Gm-Message-State: AMCzsaUEppaS8yomF3cl+bW26kAR8x0+UujJYYzA48f2o9Ieu7btC3p7
	NZCvv27C3u19iTWeOG8Efev1MA==
X-Google-Smtp-Source: ABhQp+SontbD3DIg/MFlm5h6ObZJ95ZLgs9QRrcT8/zMJXy85zR6b60C1xuORA2QtUhoI/sqFpG9Pw==
X-Received: by 10.223.184.18 with SMTP id h18mr620404wrf.29.1509034177072;
        Thu, 26 Oct 2017 09:09:37 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.35.150 with SMTP id j144ls1000995wmj.8.gmail; Thu, 26 Oct
 2017 09:09:35 -0700 (PDT)
X-Received: by 10.223.182.12 with SMTP id f12mr5473170wre.136.1509034175808;
        Thu, 26 Oct 2017 09:09:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1509034175; cv=none;
        d=google.com; s=arc-20160816;
        b=nHFPbxlVZb0qBk7Y4Aqc/yituM4Ap7l70CoDR7q+hzBdrvr/DB1teJTxTcVr61shUr
         84iTGrUZUfs71MegU+FmIbfl5XKC5UZdDdqhFUcF/mKLVY5ilVyjsrHLbqqlexjlUp4s
         frFCObvrSBtb8nbcjcKEfsSSbNp8/esc4ihNUNlXkkNeepfyK+LKFQ+lxAwUov8EpE5w
         LHyP7InicDT5cbVIFl+lyzPLl2I6NLgsScJgnsTNro+o9xZnRmiz1nxdYlMa6GB/K/P2
         l+Rk+M3f2wIs2X0bI6PuU3uwOAJSA9H8IApli4uZwlEc1CbwPHAjZt9QBZMImkObUZ1R
         AFcg==
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=N9h9ZwSBnx2H6YfY8aNzazBErjcSr9GD2VQLbpB3nE4=;
        b=Ys3l+RQi3x6fqk7GpXzA7zcO2SufKLysis3TGO/KGta7pjMuxnR/ahfxo7uDl5Uvma
         vgSbWfwCZxlYPvdPU8t5uDQUd7X4fNOQSjI11Boc1qsq+G+PYcPnOZIEjyPVOAMfAw2d
         3R0RBWoRynPzy887mZBUrs2dSBEYC2SVS2pd9+mOa/zYXfvMnMcqKBFNp7ibFguNIP0w
         uSQ3kJSkzeo4DKHbpuwcmGCfT4mVdNfkRzauVLter5WPq6oOiY0k+vzKhW0ryQa/G0F4
         GWwi5iq7RX9VuWXtnL+VkEl7aOMLfqJhQlvUVbb6TkWq080VSapU5DOSgZkW4IGKZYxd
         VlMA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id b16si1820952wrd.363.2017.10.26.09.09.35
        for <std-proposals@isocpp.org>;
        Thu, 26 Oct 2017 09:09:35 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (unknown [134.134.139.83])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 6B58011A770
	for <std-proposals@isocpp.org>; Thu, 26 Oct 2017 09:09:35 -0700 (PDT)
In-Reply-To: <a82f7b048d91673203c75fa04e98f481@kdab.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 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:35116
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35116>

On Thursday, 26 October 2017 01:55:04 PDT Marc Mutz wrote:
> > Calculating the length of char16_t* can't be done in a constexpr way.
> 
> ... is only C++14-constexpr (well, if you want to support reasonably
> long strings, otherwise you could come up with a recursive
> implementation).

No, it's not constexpr at all, since I can't run SSE or do reinterpret_cast 
from pointer to integer and back in constexpr mode.

See http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/tools/
qstring.cpp#n163

-- 
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/1931282.giciDSTxGt%40tjmaciei-mobl1.

.
