Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: E Allen Newsgroups: comp.std.c++ Subject: Alias Templates as Template Template arguments Date: Sun, 4 Mar 2012 14:24:15 -0800 (PST) Organization: http://groups.google.com Lines: 27 Sender: std-cpp-request@vandevoorde.com Approved: james.dennett@gmail.com Message-ID: <11319727.602.1330568315691.JavaMail.geo-discussion-forums@ynjd19> NNTP-Posting-Host: xnEo8TAGp+XvFD1CgqbbYBkujvShavfSK1RVUdlEFtg= Content-Type: text/plain; charset=ISO-8859-1 X-Trace: news.albasani.net RKnIydSQJpAsbIArsoV11jr1CGKLLksAY6nEzTbFdeI8yLmZ46axmc8LzyyA0P1cWdJesOYLrY96WEtHQE8Qpw== X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Sun, 4 Mar 2012 22:24:16 +0000 (UTC) X-Mailer: Perl5 Mail::Internet v2.05 X-Submission-Address: std-cpp-submit@vandevoorde.com Cancel-Lock: sha1:uHiXvscjGjKG2+NTGuBRIbgqUZo= X-Original-Date: Wed, 29 Feb 2012 18:18:35 -0800 (PST) Xref: csiph.com comp.std.c++:427 I saw some threads from prior to the final C++11 standard that seemed to indicate that this would be legal. Now that things are finalized, is the following, in fact, legal? namespace MyLib { template class Normal_Traits { /* ... */ }; template> class Nifty_New_Container { /* ... */ }; template Con> class Widget { Con ci; Con cp; /* ... use ci and cp in member functions */ }; } template using Adapter = MyLib::Nifty_New_Container; void foo() { Widget w; // use w } -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]