220 10509 <bbc781f2-2394-4710-b9de-83c385e923cd@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: 0xc0deface@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: get_deleter_type_info
Date: Mon, 5 May 2014 18:20:31 -0700 (PDT)
Lines: 112
Approved: news@gmane.org
Message-ID: <bbc781f2-2394-4710-b9de-83c385e923cd@isocpp.org>
References: <aad284b8-1af7-4aa9-aabe-f36ebfedf78f@isocpp.org>
 <2219117.8dN8m88Reg@tjmaciei-mobl4> <CA+VeAM2NCB4SaKEoOtsQRb39SQrYBjA4_jWEBhSC6yRbgZTzmw@mail.gmail.com>
 <CAGg_6+Oz9=wQupG_fFDKCskXh13BOoLE9E66M=x=jMVn-z9X0w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1416_25064235.1399339231494"
X-Trace: ger.gmane.org 1399401086 4552 80.91.229.3 (6 May 2014 18:31:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 6 May 2014 18:31:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDB7RZECV4IRBYHRUCNQKGQED3PJRMA@isocpp.org Tue May 06 20:31:19 2014
Return-path: <std-proposals+bncBDB7RZECV4IRBYHRUCNQKGQED3PJRMA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f198.google.com ([209.85.213.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDB7RZECV4IRBYHRUCNQKGQED3PJRMA@isocpp.org>)
	id 1WhjEF-0002Ao-So
	for gclcip-std-proposals@m.gmane.org; Tue, 06 May 2014 19:32:32 +0200
Original-Received: by mail-ig0-f198.google.com with SMTP id uq10sf12220615igb.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 06 May 2014 10:32:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=Sr6D0xJ3GEoC0vhYBkm3P2rSRTJHl+QjqGmxpy4Qh6c=;
        b=ilKQCl0FNCBWg8KkG/CDFyJPqsEuIXr1lkimAnwTrvFTNC+mZyhn9p3faOo0rh1rwM
         OO9u0v1qHzhpTx8n/brLrh5CNgVrmrqZPiA9Oxl8xTj+DPHC2Mhuyiw1YC954hFPGgof
         hDaOzMipJutcVZqszC9wBaRAC02hLssI5H9E76QKiTmDhu41bwj4iOvC/b0Q/9CSZpp3
         IXnTrvI5Zrhy7dViOau2QbGFieINdL7FdzbjPP/OcBt3kBpKgjY3zzH/4Ck4s8vVdTu/
         Ug8ppc1M7y0e/Q4IOAOoc60FqyW4khybjgvpI2a0Y12ny5EKNdopM31kET7ybotcCAer
         6zeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=Sr6D0xJ3GEoC0vhYBkm3P2rSRTJHl+QjqGmxpy4Qh6c=;
        b=eyXvZKRk/ePb8Eu3Kvr4um3zDV6rPsROf0Xn0bxzaVfqVrOa5PE+qVOqDIn3n0fsSB
         ZZ54tFO7JzxzRwXI5LzzN2CnvWoqsYA6YC9/0J2nJKpKjNbQbABIoSicnhJAA5/On2PO
         /NpQSWSaeop/fS6Bc6JsZkp2jUxwFxCtOqYyBoTmhIG9Yyh+JSY+WSCPBimPWxVOizH1
         EXlmi3rnObUINxkOLm2Kn4DRo44cL17CbhKafRHxtuSGEvGbgWB8JOf726bQMabM26NX
         7SqjfLdC2y14YFtRSzwKMBjeQoU5O9jsUI0SYZFjb0d9K7Hal3elPf+MQTL/mJ710rFF
         hI0w==
X-Gm-Message-State: ALoCoQk8+4LxxfLVi0ajdOSybS4WglggG0zz/gvm1/uPYGhx654I7eIcJ202B/XvDvbZeiZCgkKe
X-Received: by 10.182.105.1 with SMTP id gi1mr18934469obb.6.1399339233144;
        Mon, 05 May 2014 18:20:33 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.88.131 with SMTP id bg3ls1014593obb.93.gmail; Mon, 05 May
 2014 18:20:32 -0700 (PDT)
X-Received: by 10.182.236.1 with SMTP id uq1mr31837obc.10.1399339232136;
        Mon, 05 May 2014 18:20:32 -0700 (PDT)
In-Reply-To: <CAGg_6+Oz9=wQupG_fFDKCskXh13BOoLE9E66M=x=jMVn-z9X0w@mail.gmail.com>
X-Original-Sender: 0xc0deface@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:10509
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/10509>

------=_Part_1416_25064235.1399339231494
Content-Type: text/plain; charset=UTF-8



On Tuesday, 6 May 2014 01:06:53 UTC+10, Nevin ":-)" Liber wrote:
>
> On 5 May 2014 02:37, Matthew Fletcher <0xc0d...@gmail.com <javascript:>>wrote:
>
>> The use case where I am having problems is with serialisation of 
>> shared_ptr.
>>
>
> Just serializing the deleter isn't sufficient; for correctness you also 
> need to serialize the allocation method (both the object and the deleter 
> may be dependent upon it), which isn't directly stored with the shared_ptr.
>

True. I hadn't considered the allocator as im currently not using one. 

 

>
> Having the type_info object would allow quicker lookups so that the type 
>> can be serialised sooner, and would avoid a O(n) search.
>>
>
> You have that many deleters where this will make a difference??
>

No. At the moment we only have a handful of custom deleters. However who 
knows how the design may change in the future.
 

> -- 
>  Nevin ":-)" Liber  <mailto:ne...@eviloverlord.com <javascript:>>  (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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_1416_25064235.1399339231494
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Tuesday, 6 May 2014 01:06:53 UTC+10, Nevin ":-)=
" Liber  wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-=
left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr=
">On 5 May 2014 02:37, Matthew Fletcher <span dir=3D"ltr">&lt;<a href=3D"ja=
vascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"OGan9mHQFPwJ" onmouse=
down=3D"this.href=3D'javascript:';return true;" onclick=3D"this.href=3D'jav=
ascript:';return true;">0xc0d...@gmail.com</a>&gt;</span> wrote:<br><div><d=
iv class=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>The use case where I a=
m having problems is with serialisation of shared_ptr.</div></div></blockqu=
ote>

<div><br></div><div>Just serializing the deleter isn't sufficient; for corr=
ectness you also need to serialize the allocation method (both the object a=
nd the deleter may be dependent upon it), which isn't directly stored with =
the shared_ptr.</div></div></div></div></blockquote><div><br></div><div>Tru=
e. I hadn't considered the allocator as im currently not using one.&nbsp;</=
div><div><br></div><div>&nbsp;</div><blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;"><div dir=3D"ltr"><div><div class=3D"gmail_quote">

<div><br></div><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><div cl=
ass=3D"gmail_quote"><div>Having the type_info object would allow quicker lo=
okups so that the type can be serialised sooner, and would avoid a O(n) sea=
rch.</div>

</div></div></div></blockquote><div><br></div><div>You have that many delet=
ers where this will make a difference??</div></div></div></div></blockquote=
><div><br></div><div>No. At the moment we only have a handful of custom del=
eters. However who knows how the design may change in the future.</div><div=
>&nbsp;<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr"><div>-- <br>&nbsp;Nevin ":-)" Liber&nbsp; &lt;mailto:<a href=3D"javascr=
ipt:" target=3D"_blank" gdf-obfuscated-mailto=3D"OGan9mHQFPwJ" onmousedown=
=3D"this.href=3D'javascript:';return true;" onclick=3D"this.href=3D'javascr=
ipt:';return true;">ne...@eviloverlord.com</a><wbr>&gt;&nbsp; (847) 691-140=
4
</div></div>
</blockquote></div>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_1416_25064235.1399339231494--

.
