220 40716 <CAGg_6+OJbVjX=MUyNhz-V8cJ_24nm6tq4yv0Fn=+ACz5V=BMdg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: a string type for APIs
Date: Thu, 25 Oct 2018 00:21:56 -0500
Lines: 74
Approved: news@gmane.org
Message-ID: <CAGg_6+OJbVjX=MUyNhz-V8cJ_24nm6tq4yv0Fn=+ACz5V=BMdg@mail.gmail.com>
References: <CAF9gR9e5Kfy+TBtkRf-2i8EQ42Q5eRTQc0P9HLu9PP9UG4RCjg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000041daa6057906ca55"
X-Trace: blaine.gmane.org 1540444829 14781 195.159.176.226 (25 Oct 2018 05:20:29 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 25 Oct 2018 05:20:29 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCE35H5S6IDBBGVGYXPAKGQEZSWTIEQ@isocpp.org Thu Oct 25 07:20:25 2018
Return-path: <std-proposals+bncBCE35H5S6IDBBGVGYXPAKGQEZSWTIEQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk1-f197.google.com ([209.85.221.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBGVGYXPAKGQEZSWTIEQ@isocpp.org>)
	id 1gFY4H-0003iu-72
	for gclcip-std-proposals@m.gmane.org; Thu, 25 Oct 2018 07:20:25 +0200
Original-Received: by mail-vk1-f197.google.com with SMTP id c1sf2065543vkf.19
        for <gclcip-std-proposals@m.gmane.org>; Wed, 24 Oct 2018 22:22:36 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1540444955; cv=pass;
        d=google.com; s=arc-20160816;
        b=AClriiiGesFXsjR201NF18F/y0K0V3qid5QJkThrJYN5AmpoSiqKFImP7vrBg/hkMB
         miplFppL3qw76V7uphRaFiWuSUJlBrtvpzgGd6GQER1xy4o43hTVBg3LyH1wwCwseOIb
         Hessqo9/y3WYBqo6t6HyXTmH+u8HSFvscHAeS+Y4kLKjn0zAk+3d8GiFTiSIK9PbQ+03
         WnVRkXhMvoTI2A8NcRXiQfoYbBaCIlkq4av8oCzfpB3VStta2U4Gnbuzp3eASyrj/GdO
         vSp3G/aImV70/SIJi8s+oAQ298v+dXk03/Ke57tYFrmRujCd/eKx8FWPFOOGNXIYva0X
         WXwA==
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:in-reply-to:references:mime-version:dkim-signature;
        bh=tSaDpTBLrvTuTk3ryt9pJWN4ZM3LxXU/tZTVVuveXQg=;
        b=JCEchXsNXXVaA+Dl9BxafkJSSeteOXrs/TtVPboAHlRDvggGbRMonLS0a6hNTruuo+
         aaABmZucIZgzbfKTo6iY6oMaTmqxfMkBdXrK84i4SjUvvE42gsdYWY2eOULZ/vCmHduO
         vfbH2DRkZAmdixVnxcyAqh741IBQRXsc0OT3WdB6+5Vvn5MLGyx8V1DbC0ZI7GFeav/7
         BGcOpI7ciiYsdQry0KvwIIee721uv0MNu8feG7rgIbgUbD2cwonfXsQdk8qWsyzI0WhP
         w173bvsNms49XBJoO9UXGBcuuVUzic+sJNcktcsTcgsl/CrGat+fFth1CBEk3VLZ4dWR
         /0lQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of nliber@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=nliber@gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to: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=tSaDpTBLrvTuTk3ryt9pJWN4ZM3LxXU/tZTVVuveXQg=;
        b=D0CXc+AGG7rDwgRwhu2hy8Kw8vE3JCNjMJG7y8uGuTIK4iDFrKPWvbTwHO/Vl0OPk4
         sVuk049n82GO0wkMOvdX+fDgE8QDOyzE6rfNG+yC4qzar8lGnvXvXV8503zb89jbzx4p
         VP/oDcAXCooPvnazTxfWirb+7VYyMO8CPOpdaChRwKx8jUkhGyVdNQvPYBgivVTEuaKB
         /AKiipPQlye8uESaum7+049DdCmk2aTxe1EybVtlQVAMvqfjkHd3aYYLuJjcS3+8OVXF
         8bTjuqCF5EvrAg8Zcx9WRrlY+JlX9PCzyDMZwyVZXoPutfiwEFm6emAZC5cHz6/cfO2N
         J7+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to: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=tSaDpTBLrvTuTk3ryt9pJWN4ZM3LxXU/tZTVVuveXQg=;
        b=BEHsdT8ZvJFN/IQCsNl6bF/TdLBth/STJz1LjEzmmYWmk6n8mmNumRrAbHZ1FRwBnW
         TZAuldb29qpTLWOcSU9PfyOyyJ+SlC3qyuBFId6M3LKDuguFh3E/wfmG2IRVtzlSUr5Y
         St4jYQcuYBCzsQi7M0qQbXOm7oA3JnCjtFTpR7aqYRncbi6f9H9AE8t/KGiPpYQumENv
         /DyL0HnOmgFIbnmgxT8btxbyRI2T2xHts8bCnrl8qxrOa/mD57gpsur2QnQUMoFndUT3
         yL0oOFBN3PLFfYJzem1bGWapRP7pMco2P2hBDl5gQzmSPZlcIvCEsVK+eC5LwEIyL7SZ
         YEcQ==
X-Gm-Message-State: AGRZ1gKG9OikFu6tg0R+rEPeu/+pCUREYEMLfaintq072TUD23R5SMxS
	0Lb5yX7AtWJD0JOYY3sOiuY=
X-Google-Smtp-Source: AJdET5cheKXp67MDmnaShDsQ3tzlfrdWzvqLg7F3AGb4vaNVGSs+oAOs7c2q2VBYUItuac/+wGTL8g==
X-Received: by 2002:a67:b107:: with SMTP id w7mr118085vsl.24.1540444955474;
        Wed, 24 Oct 2018 22:22:35 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a67:8143:: with SMTP id c64ls379318vsd.8.gmail; Wed, 24 Oct
 2018 22:22:34 -0700 (PDT)
X-Received: by 2002:a67:17c3:: with SMTP id 186mr44094vsx.235.1540444954456;
        Wed, 24 Oct 2018 22:22:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1540444954; cv=none;
        d=google.com; s=arc-20160816;
        b=f5mQI9oxVtJbru8qz9w1xKrfm2mt/pmrEMYrt3lHlfUwArlSN2dgmKKj1EoP9tQs08
         O5sj+3oP606ZygRPoeuPUbxNNkulvgTN2GCjK4q3FD0Tt7ruQVNAnR3+2cNui9aDWCSP
         H8IXxHHslfBJ3Co+6Z6KabdrkyzRZnU4hf/WgPKcIXEGgBz/+8i2jDKvaG/ToW50k23g
         c0W7RlACTAHOgN7ZBEYHFCgnfoWgBEc6cyIdONc9tQm9fGFpBkJZxOfD7L1wvFjttnWe
         MmpP6b64naw1rJWaVwr6jcFEclDFhy17Iy4KDK3Tagbaalhy4mMpHC3SfeM9OktZjnHM
         3VQQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version;
        bh=pnL2moRmtejFG5zon3Ffq/toBiT8pxqr8VBScwLw3ZI=;
        b=L2442Nq9GtEe2v78YeKsfPAlYpmCC8BFUDS27KjUvIhhZkWivoCqHh6DG9EbGXbKXT
         RWHOPB8NNRpyMuRY3iIm6sH1PeT8yBDHyWP6V/tD+gMovFJxFbbDxpWNrTGvtJuvmop4
         8pjvokrQ2Nkj3FQHy5PR1SAM6pz3OHj1/jsUOym6y4MYzV4maGg3B3qgDDUTx5SPqlRO
         xbs0ea361OigDpxBr7TkT1ND8GBpbd7SYrOkHSo03p/faFLcS5Gm8C3oF4VG7Zm7+65C
         QENSAIDQlFvIO0eEEAyeE3E6qnQnQgb5R95PmDbhO8WrfI+MEL3rptfbqCh1uipZfZsf
         bxsg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of nliber@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=nliber@gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id q20sor3964152vkd.37.2018.10.24.22.22.34
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 24 Oct 2018 22:22:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a1f:b547:: with SMTP id e68-v6mr58852vkf.72.1540444953629;
 Wed, 24 Oct 2018 22:22:33 -0700 (PDT)
In-Reply-To: <CAF9gR9e5Kfy+TBtkRf-2i8EQ42Q5eRTQc0P9HLu9PP9UG4RCjg@mail.gmail.com>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=nliber@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:40716
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40716>

--00000000000041daa6057906ca55
Content-Type: text/plain; charset="UTF-8"

On Wed, Oct 24, 2018 at 11:53 AM Roberto Hinz <robhz786@gmail.com> wrote:

> Almost every API contains some functions that receive or return strings.
> Yet, the C++ standard does not provide any good solution to transfer
> strings across modules boundaries. While raw strings and
> std::basic_string_view are not able to manage dynamic allocated memory,
> std::basic_string does not have a standard ABI and its header is
> expensive to compile.
>
If you are looking for a string whose individual characters can't be
modified, that kind of already exists as std::runtime_error.
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  +1-847-691-1404

-- 
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/CAGg_6%2BOJbVjX%3DMUyNhz-V8cJ_24nm6tq4yv0Fn%3D%2BACz5V%3DBMdg%40mail.gmail.com.

--00000000000041daa6057906ca55
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wed, Oct 24, 2018 at 11:53 AM Roberto Hinz &lt;<a href=
=3D"mailto:robhz786@gmail.com">robhz786@gmail.com</a>&gt; wrote:<br><div cl=
ass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div st=
yle=3D"font-family:arial,helvetica,sans-serif"><div id=3D"m_-22097882498186=
01765m_4655701241357336627m_-203957810354332258gmail-preview1" class=3D"m_-=
2209788249818601765m_4655701241357336627m_-203957810354332258gmail-g-b m_-2=
209788249818601765m_4655701241357336627m_-203957810354332258gmail-g-b--t1of=
2 m_-2209788249818601765m_4655701241357336627m_-203957810354332258gmail-spl=
it m_-2209788249818601765m_4655701241357336627m_-203957810354332258gmail-sp=
lit-preview">
  <div id=3D"m_-2209788249818601765m_4655701241357336627m_-2039578103543322=
58gmail-preview" class=3D"m_-2209788249818601765m_4655701241357336627m_-203=
957810354332258gmail-preview-html"><p>Almost
 every API contains some functions that receive or return strings. Yet,=20
the C++ standard does not provide any good solution to transfer strings=20
across modules boundaries. While raw strings and <code>std::basic_string_vi=
ew</code> are not able to manage dynamic allocated memory, <code>std::basic=
_string</code> does not have a standard ABI and its header is expensive to =
compile.</p></div></div></div></div></blockquote><div>If you are looking fo=
r a string whose individual characters can&#39;t be modified, that kind of =
already exists as std::runtime_error.</div></div>-- <br><div dir=3D"ltr" cl=
ass=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"=
><div><div dir=3D"ltr"><div>=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mai=
lto:<a href=3D"mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@evilo=
verlord.com</a>&gt; =C2=A0+1-847-691-1404</div></div></div></div></div></di=
v>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAGg_6%2BOJbVjX%3DMUyNhz-V8cJ_24nm6tq=
4yv0Fn%3D%2BACz5V%3DBMdg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Df=
ooter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGg_6%=
2BOJbVjX%3DMUyNhz-V8cJ_24nm6tq4yv0Fn%3D%2BACz5V%3DBMdg%40mail.gmail.com</a>=
..<br />

--00000000000041daa6057906ca55--

.
