220 4641 <846b5e62-c4a3-4121-a355-bce5794296dd@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Mikhail Semenov <mikhailsemenov1957@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Extension to std::function to allow binding a
 object to its member function
Date: Mon, 27 May 2013 09:20:16 -0700 (PDT)
Lines: 156
Approved: news@gmane.org
Message-ID: <846b5e62-c4a3-4121-a355-bce5794296dd@isocpp.org>
References: <6472bf39-fa71-4947-ae99-df011d5435e2@isocpp.org>
 <CAFk2RUbya71TN=oPShj+fatACEsnVRnv59+Sa8vZDAWEca6ibQ@mail.gmail.com>
 <14f3831b-c1ab-4a5c-9575-6118282cc1fa@isocpp.org>
 <CAEn_SPKiKNhnoynO7KGT3yh20BfY6xVoaJ-7FO3J99+vrFv52g@mail.gmail.com>
 <cdfca7e6-a940-4ac9-a62a-aa24a64c7342@isocpp.org>
 <CAFk2RUZbTjUf-vVFk284PbOv+nYXx+zTAHoUBvJ58LOZ58Qg8w@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_231_773066.1369671616662"
X-Trace: ger.gmane.org 1369671620 20969 80.91.229.3 (27 May 2013 16:20:20 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 27 May 2013 16:20:20 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDC55PNFRYGRBQMPR2GQKGQE7I555PI@isocpp.org Mon May 27 18:20:20 2013
Return-path: <std-proposals+bncBDC55PNFRYGRBQMPR2GQKGQE7I555PI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f199.google.com ([209.85.220.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDC55PNFRYGRBQMPR2GQKGQE7I555PI@isocpp.org>)
	id 1Uh09j-0000pj-9P
	for gclcip-std-proposals@m.gmane.org; Mon, 27 May 2013 18:20:19 +0200
Original-Received: by mail-vc0-f199.google.com with SMTP id hf12sf8941097vcb.2
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 May 2013 09:20:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=Moej5ONihVzl5FDzwMyghIOGgllCCKp8ur6gG1ZYJho=;
        b=XY3EWRy2neVQC+cZnrPIyl55TkQ0M2AEnye75uPBi8en5yyLADYITv5Tl7OuNiGlEO
         qE9KvfiKE9+dxYWJB1BotC5ZIDeGCEzwolqSnirzDa8/b3r+NZx4mF8hzeNr8u4p7aS5
         8O8E7wmxsn0EF8B5SjMx3FZYLojYiJSGPyRl80G/zNISlXk5/CuOaBhdOo6r06irbSql
         AUUi87cNUTXvkvsIOSfEDKNWk25TipD49UIMjFzWeQEn8SG3KqtXopgfbFG+GlUh2rlz
         DRj1zdOBPl29VNZ0Y2goDY+a9JiG9S6ceO06rXx9JUfaCTxUQazIOoYdhvTNsZayG0O+
         z36g==
X-Received: by 10.236.193.196 with SMTP id k44mr14364919yhn.40.1369671618408;
        Mon, 27 May 2013 09:20:18 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.40.131 with SMTP id x3ls2664417qek.40.gmail; Mon, 27 May
 2013 09:20:17 -0700 (PDT)
X-Received: by 10.49.39.3 with SMTP id l3mr2222574qek.26.1369671617012;
        Mon, 27 May 2013 09:20:17 -0700 (PDT)
In-Reply-To: <CAFk2RUZbTjUf-vVFk284PbOv+nYXx+zTAHoUBvJ58LOZ58Qg8w@mail.gmail.com>
X-Original-Sender: mikhailsemenov1957@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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4641
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4641>

------=_Part_231_773066.1369671616662
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

My mistake!

On Monday, May 27, 2013 2:56:19 PM UTC+1, Ville Voutilainen wrote:

>
>
>
> On 27 May 2013 16:54, Mikhail Semenov <mikhailse...@gmail.com<javascript:=
>
> > wrote:
>
>> This will not work for a reference parameter.
>>
>
> It works on gcc 4.7 and clang 3.4 in practice. What makes you think it=20
> doesn't work?
> =20
>
>> =20
>>
>> On Monday, May 27, 2013 2:46:08 PM UTC+1, R. Martinho Fernandes wrote:
>>
>>> On Mon, May 27, 2013 at 3:38 PM, Mikhail Semenov <mikhailse...@gmail.co=
m
>>> > wrote:
>>>
>>>> Ville,
>>>> =20
>>>> How can you bind a class to a member with non-value parameters, so tha=
t=20
>>>> you produce something similar to a_add1?
>>>> =20
>>>> Regards,
>>>> Mikhail.
>>>>
>>>>
>>> std::bind(&a, &A::add1, _1)?
>>>
>>> Mit freundlichen Gr=FC=DFen,
>>>
>>> Martinho
>>>  =20
>>>
>>>  --=20
>> =20
>> ---=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to std-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> Visit this group at=20
>> http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=3Den.
>> =20
>> =20
>>
>
>

--=20

---=20
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 e=
mail 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-proposa=
ls/?hl=3Den.



------=_Part_231_773066.1369671616662
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>My mistake!</div><div><br>On Monday, May 27, 2013 2:56:19 PM UTC+1, Vi=
lle Voutilainen wrote:</div><blockquote class=3D"gmail_quote" style=3D"marg=
in: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, =
204); border-left-width: 1px; border-left-style: solid;"><div dir=3D"ltr"><=
br><div><br><br><div class=3D"gmail_quote">On 27 May 2013 16:54, Mikhail Se=
menov <span dir=3D"ltr">&lt;<a href=3D"javascript:" target=3D"_blank" gdf-o=
bfuscated-mailto=3D"ez1Z_RQByBAJ">mikhailse...@gmail.com</a>&gt;</span> wro=
te:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; paddi=
ng-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px=
; border-left-style: solid;"><div>This will not work for a reference parame=
ter.</div></blockquote><div><br></div><div>It works on gcc 4.7 and clang 3.=
4 in practice. What makes you think it doesn't work?<br>
&nbsp;<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px =
0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border=
-left-width: 1px; border-left-style: solid;"><div>&nbsp;</div><div><br>On M=
onday, May 27, 2013 2:46:08 PM UTC+1, R. Martinho Fernandes wrote:</div><di=
v>
<div><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; =
padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width=
: 1px; border-left-style: solid;"><div dir=3D"ltr"><div><div class=3D"gmail=
_quote">
On Mon, May 27, 2013 at 3:38 PM, Mikhail Semenov <span dir=3D"ltr">&lt;<a>m=
ikhailse...@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; paddi=
ng-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px=
; border-left-style: solid;"><div>Ville,</div><div>&nbsp;</div><div>How can=
 you bind a class to a member with non-value parameters, so that you produc=
e something similar to a_add1?</div>

<div>&nbsp;</div><div>Regards,</div><div>Mikhail.<br><br></div></blockquote=
><div><br>std::bind(&amp;a, &amp;A::add1, _1)?</div><div><br clear=3D"all">=
<div>Mit freundlichen Gr=FC=DFen,<br><br>Martinho</div>&nbsp;
<br></div></div><br></div></div>
</blockquote>

<p></p>

-- <br>
&nbsp;<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
ez1Z_RQByBAJ">std-proposal...@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"ez1Z_RQByBAJ">std-pr...@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den" target=3D"_blank">http://groups.google.com/a/<wbr>i=
socpp.org/group/std-<wbr>proposals/?hl=3Den</a>.<br>
&nbsp;<br>
&nbsp;<br>
</div></div></blockquote></div><br></div></div>
</blockquote>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_231_773066.1369671616662--

.
