🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2556

Re: [Q] Templates in namespaces?

#2556
From: Atman Binstock
Date: Wed, 15 Nov 1995 02:03
28 lines
1214 bytes
In article <ACCCFC90966811A2B6@corf.demon.co.uk>,
Sean A Corfield  <sean@corf.demon.co.uk> wrote:
>Templates can indeed be placed in namespaces. The current WP says that
>specialisations of such templates must also go inside the same namespace:
>

Can a namespace be a template argument?
ex:
template<namespace N> void f()
{
	N::Fast_real r;
	//...

>The other major issue which has an impact on templates & namespaces is name
>injection -- the committee are debating this subject at the moment.

What is name injection??

Thanks,
Atman Binstock
ajb@panix.com


---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <48bdf0$cou@panix.com>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
References: <481d4h$fr7@dingo.cc.uq.oz.au> <ACCCFC90966811A2B6@corf.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: ajb@panix.com (Atman Binstock)
Newsgroups: comp.std.c++
Subject: Re: [Q] Templates in namespaces?
Date: 15 Nov 1995 02:03:49 GMT
Organization: Panix
Approved: matt@physics10.Berkeley.EDU (Matt Austern)
Message-ID: <48bdf0$cou@panix.com>
References: <481d4h$fr7@dingo.cc.uq.oz.au> <ACCCFC90966811A2B6@corf.demon.co.uk>
NNTP-Posting-Host: physics10.berkeley.edu