220 20302 <4038707.19J27rkunV@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Progress for universal template parameters
Date: Sat, 05 Sep 2015 14:14:33 -0700
Lines: 41
Approved: news@gmane.org
Message-ID: <4038707.19J27rkunV@tjmaciei-mobl4>
References: <66e52f79-a8b0-4489-bd52-f13a95edf9f3@isocpp.org> <dab47fb5-2cfb-4dc8-8365-c4b901c193bc@isocpp.org> <59c548ca-e595-4de1-81e0-a8d580c7a398@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 1441487698 3947 80.91.229.3 (5 Sep 2015 21:14:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 5 Sep 2015 21:14:58 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBRVWVWXQKGQEK5TKYAI@isocpp.org Sat Sep 05 23:14:50 2015
Return-path: <std-proposals+bncBCB4TK757YBRBRVWVWXQKGQEK5TKYAI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBRVWVWXQKGQEK5TKYAI@isocpp.org>)
	id 1ZYKnP-0002zu-Jk
	for gclcip-std-proposals@m.gmane.org; Sat, 05 Sep 2015 23:14:47 +0200
Original-Received: by wicuu12 with SMTP id uu12sf15805644wic.2
        for <gclcip-std-proposals@m.gmane.org>; Sat, 05 Sep 2015 14:14:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-type: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=l17biWxLYqlwXxuRNbdRqIWdByXkWTAB3zcY5h6DexI=;
        b=Ca/jOxlt74ptcFHPqraa4biKLJGWmtqYO49x5he/ZyqSLDvvDzlWRcjJOEnjwPKHSu
         7Qn2VG7Oo6w/zcI+tBAzfRayX5eM9nLGFAig0X1W9IHe4PeSPX3Tin7l1qklNNYvf4HO
         WHGdbVs4m25BQt4TCgFkxBxkrXue/TTANJK4pwVO+d9/aSsCqN0eYmHjMXgNriQPh+Cg
         g/EP2b197rEanMWJARMlrkO0F35pZfJ1q16Us5EZ+v/61Atv+77cnTTU/eR3XfzwPR5R
         a4tkGIX6sIIWeDRnGCbqikVFw+dF9dseoQwMj03zafEHYox/+j/JM4FxZ2Ahp2J6vjxe
         B/sQ= 
X-Gm-Message-State: ALoCoQmFj7uZhUD1dtPbM2wa+F22rYa+Ozn4Co5f9hJwh88IFgxHbDeAiS4JJcM7wCoIr2KoXmLj
X-Received: by 10.152.27.10 with SMTP id p10mr2858136lag.1.1441487687154;
        Sat, 05 Sep 2015 14:14:47 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.205.244 with SMTP id lj20ls345314wic.52.canary; Sat, 05
 Sep 2015 14:14:45 -0700 (PDT)
X-Received: by 10.194.113.170 with SMTP id iz10mr20658538wjb.58.1441487685964;
        Sat, 05 Sep 2015 14:14:45 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id gh10si12338947wic.24.2015.09.05.14.14.45
        for <std-proposals@isocpp.org>;
        Sat, 05 Sep 2015 14:14:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (75-104-69-26.mobility.exede.net [75.104.69.26])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 5F87111A542
	for <std-proposals@isocpp.org>; Sat,  5 Sep 2015 14:14:44 -0700 (PDT)
User-Agent: KMail/4.14.9 (Linux/4.1.6-1-desktop; KDE/4.14.9; x86_64; ; )
In-Reply-To: <59c548ca-e595-4de1-81e0-a8d580c7a398@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:20302
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/20302>

On Saturday 05 September 2015 11:59:02 Columbo wrote:
> Am Samstag, 5. September 2015 20:52:56 UTC+2 schrieb Nicol Bolas:
> > On Saturday, September 5, 2015 at 2:41:14 PM UTC-4, Columbo wrote:
> >> A is not accepting everything. A is solely accepting class or alias
> >> templates;
> > 
> > So A accepts a type template, which could have any number of parameters of
> > any kind. It's not clear what you can actually do with such a type
> > template
> > of unknown nature.
> 
> Forward it, or instantiate it with arguments from which you know that they
> are valid for this template.

Sounds like you want a rebind structure instead.

struct myrebind
{
	template <typename Foo, int I, template <typename> class TTP>
	using rebind = myrealtype<Foo, I, TTP>;
};

template <typename rebind> struct A
{
	using type = typename rebind::rebind<A, 1, SomeCollection>;
};

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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/.

.
