220 6345 <53aedd84-8247-4d1f-88b2-036ae3b08406@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Vittorio Romeo <vittorio.romeo.vee@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: std::sink<T> to efficiently pass `sink` arguments
Date: Tue, 10 Sep 2013 08:47:26 -0700 (PDT)
Lines: 55
Approved: news@gmane.org
Message-ID: <53aedd84-8247-4d1f-88b2-036ae3b08406@isocpp.org>
References: <c8da1b8c-becf-421e-b2c1-8cc561afb579@isocpp.org>
 <CAEn_SPJP_+cUKbsjCg_LC=hOwKiOhG08ysx7UzskuJxru1+j=Q@mail.gmail.com>
 <DUB106-W391D412B214542DE43655B8C380@phx.gbl> <CAEn_SPJRU+eekicg8bKiRDHbhX8x-ko8=jt5t7XsYMa6YwBuQg@mail.gmail.com>
 <CAGg_6+OEk=5gDC6SsLp9-oOOEMMj0upq0=nAXCv4jW0dcG1nCQ@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_2080_10921420.1378828046110"
X-Trace: ger.gmane.org 1378828046 24489 80.91.229.3 (10 Sep 2013 15:47:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 10 Sep 2013 15:47:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCO3NDEYZQHRBDX6XSIQKGQEWA7JLII@isocpp.org Tue Sep 10 17:47:30 2013
Return-path: <std-proposals+bncBCO3NDEYZQHRBDX6XSIQKGQEWA7JLII@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCO3NDEYZQHRBDX6XSIQKGQEWA7JLII@isocpp.org>)
	id 1VJQA4-00015F-M6
	for gclcip-std-proposals@m.gmane.org; Tue, 10 Sep 2013 17:47:28 +0200
Original-Received: by mail-ob0-f198.google.com with SMTP id wc20sf28103894obb.9
        for <gclcip-std-proposals@m.gmane.org>; Tue, 10 Sep 2013 08:47:27 -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=i2PP+qtdVImFGR5fyjt55jCSgFsksXboq2NHuqZj1YQ=;
        b=Y3mZvxPat2VSMjCKSTg3Ffpewk+intLjbwTEzh+2tr+KsOBst/EDs8fehxe0QSsY5Q
         rHFlv4RgDQXrEcPnPubO5c7QEj4VG+Ag3OfpIVuxyhxNfz8sqK2a79J7hINrUQqJ8KNX
         Y68Lmd2/4w0XdYxMQQGhvf0bKlqnB4tTp6lCgpP7LdAMtDg2z5iMmQcJldyCFaertyBR
         8pLJLaAzF5YplCoPTXA5lr8e5wEhyuexxnmT07ybZ/UxsV4EzZKlyAJfNj5Q+YSAUB63
         GpYR7dzLJhyWh1nZu3UwFxcz6Jvxgje0OQmRvuUB2QUMKWLgzkyN5ndYmqsR2mlu2Oh/
         IVCQ==
X-Received: by 10.50.141.131 with SMTP id ro3mr11281387igb.2.1378828047449;
        Tue, 10 Sep 2013 08:47:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.7.37 with SMTP id g5ls2523757iga.29.canary; Tue, 10 Sep
 2013 08:47:26 -0700 (PDT)
X-Received: by 10.50.136.133 with SMTP id qa5mr654622igb.4.1378828046632;
        Tue, 10 Sep 2013 08:47:26 -0700 (PDT)
In-Reply-To: <CAGg_6+OEk=5gDC6SsLp9-oOOEMMj0upq0=nAXCv4jW0dcG1nCQ@mail.gmail.com>
X-Original-Sender: vittorio.romeo.vee@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:6345
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6345>

------=_Part_2080_10921420.1378828046110
Content-Type: text/plain; charset=ISO-8859-1

On Tuesday, 10 September 2013 17:44:24 UTC+2, Nevin ":-)" Liber wrote:

> Yeah, but it is a bit painful to use, as you end up needing to make all 
> the parameters templates and then use SFINAE or Concepts Lite to limit the 
> damage.
>

If that's the case, it's even worse than the n^2 constructor problem. 
Also, I think specifying that the argument is gonna be sinked right in the 
signature (in my std::sink<T> proposal) clearly expresses the intent, more 
so than forwarding or pass-by-value + move idiom.

-- 

--- 
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_2080_10921420.1378828046110
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size: 13px;">On Tuesday, 10 September =
2013 17:44:24 UTC+2, Nevin ":-)" Liber  wrote:</span><br><blockquote class=
=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #cc=
c solid;padding-left: 1ex;"><div dir=3D"ltr"><div><div class=3D"gmail_quote=
"><div>Yeah, but it is a bit painful to use, as you end up needing to make =
all the parameters templates and then use SFINAE or Concepts Lite to limit =
the damage.</div></div></div></div></blockquote><div><br></div><div>If that=
's the case, it's even worse than the n^2 constructor problem. <br>Also, I =
think specifying that the argument is gonna be sinked right in the signatur=
e (in my std::sink&lt;T&gt; proposal) clearly expresses the intent, more so=
 than forwarding or pass-by-value + move idiom.</div></div>

<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/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_2080_10921420.1378828046110--

.
