220 10742 <CAFk2RUZxRsdXh0cdGdbdV3GicVzDaES=82qq2zcMXFQ6-CHR9Q@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Core Issue: deleted templates
Date: Thu, 22 May 2014 13:11:45 +0300
Lines: 46
Approved: news@gmane.org
Message-ID: <CAFk2RUZxRsdXh0cdGdbdV3GicVzDaES=82qq2zcMXFQ6-CHR9Q@mail.gmail.com>
References: <a95232ae-71bc-41cc-ad52-511fa4aab43a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1400753515 27129 80.91.229.3 (22 May 2014 10:11:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 22 May 2014 10:11:55 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBYM266NQKGQE66AAQ4I@isocpp.org Thu May 22 12:11:48 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRBYM266NQKGQE66AAQ4I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f198.google.com ([209.85.192.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBYM266NQKGQE66AAQ4I@isocpp.org>)
	id 1WnPyW-0008JC-4C
	for gclcip-std-proposals@m.gmane.org; Thu, 22 May 2014 12:11:48 +0200
Original-Received: by mail-pd0-f198.google.com with SMTP id w10sf9888263pde.9
        for <gclcip-std-proposals@m.gmane.org>; Thu, 22 May 2014 03:11:46 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from: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:content-type;
        bh=TGp9B9EnfwdFh0MmnfIpAbCoJpsjrs94TrJwqsaycAo=;
        b=PcJbiALLrD9CqcfYlijSntWD2KFOcxOUCTONn4h1d28I4MAehSvMYbSegatHEN6KNn
         F2MNTXzgWkgDCyqouungL9jBxBdefxLaPH5j8hvE92wGeVLC+gwOgEEi5tAvzzQ2Cgwn
         9UDEJbFLxX5rpaUAZRoQPBO1aQOGk9fsJ5BGueCqdMmcPFzy8rQF4xGB5sXixGqchwf3
         jukhz3uxe9dd5xHEPEBlgXJR14CTX0/xt5l2TXEwcAJFDnzWqABTWZ2HblJ8vjljLF31
         eE407/yqfH72ZPHVTqITcVxgvuxKlp3CteRt8I+K+dvb1rioQpcuXQ4oWUMrQUZv+4Wd
         17TQ==
X-Gm-Message-State: ALoCoQn40N4EOr/oSTzVqh8UECHJ62DENIg/b8ySNFHuG0kM1eoEa348CAskR0Cq3BZqhf/7ZB7U
X-Received: by 10.66.222.129 with SMTP id qm1mr24467127pac.6.1400753506402;
        Thu, 22 May 2014 03:11:46 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.108.4 with SMTP id i4ls1101106qgf.78.gmail; Thu, 22 May
 2014 03:11:45 -0700 (PDT)
X-Received: by 10.224.165.148 with SMTP id i20mr75816780qay.41.1400753505551;
        Thu, 22 May 2014 03:11:45 -0700 (PDT)
Original-Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [2607:f8b0:400d:c04::230])
        by mx.google.com with ESMTPS id y5si8803109qcd.14.2014.05.22.03.11.45
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 22 May 2014 03:11:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c04::230 as permitted sender) client-ip=2607:f8b0:400d:c04::230;
Original-Received: by mail-qg0-f48.google.com with SMTP id i50so5233054qgf.7
        for <std-proposals@isocpp.org>; Thu, 22 May 2014 03:11:45 -0700 (PDT)
X-Received: by 10.140.96.51 with SMTP id j48mr75162786qge.24.1400753505419;
 Thu, 22 May 2014 03:11:45 -0700 (PDT)
Original-Received: by 10.224.181.5 with HTTP; Thu, 22 May 2014 03:11:45 -0700 (PDT)
In-Reply-To: <a95232ae-71bc-41cc-ad52-511fa4aab43a@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c04::230 as
 permitted sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=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:10742
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/10742>

On 22 May 2014 12:46, Douglas Boffey <douglas.boffey@gmail.com> wrote:
> Would it not be better if we could explicitly delete the general template,
> thus:
>
> template <typename T>
> class Foo = delete;
>
> template <>
> class Foo<Bar> { /* ... */ };

Yes? You can do that.

> Similarly, you may want to allow the general, but explicitly deletea
> specialisation, so
>
> template <typename T>
> class Foo { /* ... */ };
>
> template <>
> class Foo<Baz> = delete;

You can do that, too.

> Although this would make an ambiguity in the grammar with respect to member
> functions, e.g.:
>
> class Foo {
> public:
>   template <typename T>
>   Foo &operator=(const T &t) = delete; // Are we deleting the template or
> the member function?
>   // ...
> };

The template is deleted, not member functions that would happen to
have a signature
that could be the same as a specialization of that template.

-- 

--- 
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/.

.
