220 32398 <f8add216-a4e1-9a47-9d06-3378d5d48e01@wanadoo.fr> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Solving the std::swap embarrassment*?
Date: Thu, 11 May 2017 21:37:01 +0200
Lines: 56
Approved: news@gmane.org
Message-ID: <f8add216-a4e1-9a47-9d06-3378d5d48e01@wanadoo.fr>
References: <201705022023.38635.marc.mutz@kdab.com>
 <201705031114.42446.marc.mutz@kdab.com>
 <5080f7be-9182-a364-7d1f-8fdf9c9531cf@wanadoo.fr>
 <201705111140.05330.marc.mutz@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"; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1494531427 29385 195.159.176.226 (11 May 2017 19:37:07 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 11 May 2017 19:37:07 +0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.8.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBX722LEAKGQEHECOTII@isocpp.org Thu May 11 21:37:00 2017
Return-path: <std-proposals+bncBDH67CONY4PBBX722LEAKGQEHECOTII@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f198.google.com ([209.85.128.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDH67CONY4PBBX722LEAKGQEHECOTII@isocpp.org>)
	id 1d8ttT-0007Ru-Hn
	for gclcip-std-proposals@m.gmane.org; Thu, 11 May 2017 21:36:59 +0200
Original-Received: by mail-wr0-f198.google.com with SMTP id w50sf8168630wrc.4
        for <gclcip-std-proposals@m.gmane.org>; Thu, 11 May 2017 12:37:04 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1494531424; cv=pass;
        d=google.com; s=arc-20160816;
        b=FztHtXsMv3HpApjJkmqVKkZDySN8yEL95jaihgxtYSN1KrMQzLShNqBQzsbmFgkjG1
         /tPB+3CQxHY57qbVy22fvepxI/ZM/811+UE0TAUeeVmriLPgSiUK7LRFcyqZDVSnu3Dt
         c6lBJ7Rr01+/Kx2yu1zKXjPenF8fDW45YrJeSsUTiCGSDIzQRYzlaeEY4ZKrXr9yAHMi
         vCjlAwjgbAyG5E69VcAQngoq2IovyiGfmrshvXk/YfLfpMtYzRpORye7HxX93xBUm3rl
         f/D/STaItnRbHyqpvmYQKJf99iOE1j2mhvv4b9ExqDg30rbYL77kJETE58fv9RxFsSec
         18Fg==
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:content-transfer-encoding
         :in-reply-to:mime-version:user-agent:date:message-id:from:references
         :to:subject:arc-authentication-results:arc-message-signature
         :dkim-signature:arc-authentication-results;
        bh=bc0xSy+pbQg1gcOHEhxjOltRNqFqxnK0vUjg97qnfbg=;
        b=ikawJX/b7kDtseKfdVrKSawLy+3oVRDYt1TuIEg+8eWrtwocl2IrD1F99QYiuU2ZW7
         94Hz2E11KvkX+xMp0N/7fOqisWspNipdbJH0ZAiAaukHemexSjA0PM2MvmyUwD3QarEh
         FIrVNTd20zrfUEmT4eVXmv9RycTbbQJ7Q5HgxbyW/N3P/nHFsojsNXKkKL/VAw1htksL
         4WJ8WIA9+G8vKdyK/UFaEzmUkPtRraBpV77RMVA4OFcNroM7zQSD2bi//86GVwo/ve70
         3yUamMXZQhf5T6r55kbymjCtqEPuUynCDByeKC9+11CixMPzmdB/H0PcOGPzadCGq9hS
         D 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 80.12.242.135 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=vicente.botet@wanadoo.fr
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-transfer-encoding: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=bc0xSy+pbQg1gcOHEhxjOltRNqFqxnK0vUjg97qnfbg=;
        b=1zgdqElF2UXQQ4p6P5me+PCwa6MXjJE5PIBHHf/2gCHAmlCmNme+9dqdiF6Ft/Wgcj
         uGzj0Tr3Jt/RKrrXPw/x/3lJX2A6qSCiKN/0em5vxs92JheWmpQ6sHddO3I+kyapCNCe
         Y3CU1D9U6zqwtmlVamEpVFzxE0lEUoRfxFAiXeSutj6DNwj6VZ1WEBY9VFw4Xm/9tjPx
         le7x2yv6/CrbUkubcHGkHI+fF7j4ODxkvaq0JHL3dYNa+aH8nf96DJKhyfEeh8sdLKaU
         KBcfPtMJFnGD161xgfgfTp5cAFx3ASeFBK9KfgbfoeA7vdz70Dgdb7LlwtRnFJP1jEKB
      
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-transfer-encoding
         :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=bc0xSy+pbQg1gcOHEhxjOltRNqFqxnK0vUjg97qnfbg=;
        b=IBJ9tMibS55td324XOCg39gPt9h4TM3QrtWrDNtsZynzwbwi8f/nwj0I1bLdhZdv8o
         EUtCRoI17hiaFfolrwuKh+QG1X19evIruqZBxIhe2IYFZzPjtPE407abwOw1mXR3PQMt
         PH051POpDjl4Er4iiNsa2YfdveHqKtmizKLl4kaUtWN8tCvjn13Op4mDey4dvpZ2lnz6
         DBrxdY+Vcl2WMfXqDXIK++/G21C2GH6Pq2Vft4qcuZyGpQFVLCUGBBlpj8WDvn4B5AO8
         Q/MT6nQdu82a23N3TZz46TYMRDm/FS9hFa+zWAnRyk3zoV9fayr64zG4c+itRNqb4f3q
  
X-Gm-Message-State: AODbwcCakDWI7PBAuLpO14CXfMBBkNxqICqOMiUaFVg7BxoAFEkIyNed
	IvLB+NGEsm9eiA==
X-Received: by 10.28.150.216 with SMTP id y207mr19253wmd.15.1494531424448;
        Thu, 11 May 2017 12:37:04 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.46.87 with SMTP id u84ls1246812wmu.3.gmail; Thu, 11 May
 2017 12:37:03 -0700 (PDT)
X-Received: by 10.28.234.19 with SMTP id i19mr126088wmh.106.1494531423094;
        Thu, 11 May 2017 12:37:03 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1494531423; cv=none;
        d=google.com; s=arc-20160816;
        b=QInSgULBY3S4Xnfjt1sBpEaFSJiGd5yjUP9PplG09fPY6fkWnXOtTccX5nl55QNi/7
         kJvJErzSWjP5KFkNrwuF/9LOZ+Ou2oUUr3/R4rlNxAcPYRykh0VLLkf2Ff9AUx1fjw9v
         LLdxWM0uTcPYgatPOZ8AkF9awnKmfa4UEXjibKuMyP3ZdPzfSrxVUiCislT7keaoaU7c
         lRDeDcwzBUgkv82iao17f2f9DzdpAJmof0Jml4xHKMARuEknOw6mALUtglPi28TKB5OC
         R7LQ2giYF8OFKDGQDcDKOarN0DomsC61CRUsboOlB71cIGin7FsJy09jGQXjNz/6EKwU
         4Szg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date
         :message-id:from:references:to:subject:arc-authentication-results;
        bh=XIm6OhDOPUomzIh2BN4kS80P3oB59Ixn94pStGzkXjg=;
        b=G31kuxIXZj1lv+KWBdrt0KyVLjGE+RMnV+bAyCzn+KzjDxRr3RjV6IIA/WMMfMXXyy
         8cWxPlPFTcO+GSRI0+2vMTO9X0dp4HDuBhBLklw1eJO8X5aQ+i/4gQ7nb4eKqyvz0NZ5
         POQ5HlbylVO3KBSAkG8EWG6P+Pz9h/23bMHCgYD3J+5i548zX8WnibUb4lRIvnVyCdyK
         jAUqalSRdjhmKpX8rs5Cr5Vt5lQ8S9s3KX53Z2X25vwiLOkPasgR6zBvyp8HG1Wr5Vyg
         a/2Ion6DB16RPGJ6Xi/QxPU5nyDvxQSwI0xTP4yElgCxOvTKdoHa3EO37TRAP2D48Pbu
         Md1A==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 80.12.242.135 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=vicente.botet@wanadoo.fr
Original-Received: from smtp.smtpout.orange.fr (smtp13.smtpout.orange.fr. [80.12.242.135])
        by mx.google.com with ESMTPS id k127si8736058wmg.128.2017.05.11.12.37.02
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Thu, 11 May 2017 12:37:03 -0700 (PDT)
Received-SPF: neutral (google.com: 80.12.242.135 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.135;
Original-Received: from imac-de-vicente-botet-escriba.home ([2.10.138.79])
	by mwinf5d76 with ME
	id K7d11v00y1ixzca037d2NH; Thu, 11 May 2017 21:37:02 +0200
X-ME-Helo: imac-de-vicente-botet-escriba.home
X-ME-Auth: dmljZW50ZS5ib3RldEB3YW5hZG9vLmZy
X-ME-Date: Thu, 11 May 2017 21:37:02 +0200
X-ME-IP: 2.10.138.79
In-Reply-To: <201705111140.05330.marc.mutz@kdab.com>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.135 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=vicente.botet@wanadoo.fr
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:32398
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32398>

Le 11/05/2017 =C3=A0 11:40, Marc Mutz a =C3=A9crit :
> On Saturday 06 May 2017 15:41:53 Vicente J. Botet Escriba wrote:
>> So to answer to your comment.we want a single point that is able to
>> ensure some constraints (Method Pattern) and call to the specific
>> customized part. Adding overload in std will not satisfy these goal. I
>> believe the goals are desirable.
> You are already allowed to "customise" a) every std class template (by fu=
ll or
> partial specialisation, which needs to mention a user type), b) every std
> function template (by full specialisation, which needs to mention a user
> type).
I was aware that we can specialize some classes, but not all, and even=20
less the full specialize a std function. Could you point me to the=20
references?  Nevertheless this doesn't solve the customization points we=20
are talking of.
> And there's no central dispatch to enforce constraints there, either
> (and $DEITY forbid someone starts to specialise std::allocator, or
> std::is_pod, ...).
>
> I can already specialise std::reverse for any concrete instantiation of Q=
List,
> by full specialisation. The embarrassment is that I can't do this for the
> QList template itself (ie. all instantations of it).
I guess you are not happy then.
>
> So, from my POV of developer-in-the-trenches all that talk about customis=
ation
> points, associcated with concepts, is just hot air.
I will not talk about what developers think. I consider my self a=20
library developer and I don't agree with you here.
In generic programming we need customization points in one way or another.

>   The issue is why overloads
> of std function (s|templates), which are the moral equivalent of partial =
class
> template specialisation, are not allowed, and why some complex years-in-t=
he-
> future mythical language feature is needed, to artifically constrain some=
thing
> that's already unconstrained.
>
I believe someone has already responded to this question, but maybe it=20
was in another thread.

Vicente

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/f8add216-a4e1-9a47-9d06-3378d5d48e01%40wanadoo.f=
r.

.
