473,799 Members | 3,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WG21 paper on templated namespaces

Hi all,

I have been searching through the list of papers at:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/

I seem to remember a proposal regarding templated namespaces e.g:

template <typename T>
namespace X{

}

Unfortunately I cant find it. Does anyone know the name/number of the
paper I'm thinking of or have I just invented it?

regards
Andy Little

Jun 15 '06
15 1814

Victor Bazarov wrote:
kwikius wrote:
[..]
A namespace is reopenable which is a useful feature it has over a
struct.


You can always *derive* from a struct, can't you?


BTW another important property of a namespace is that you cant't
instantiate it. IOW used as a container a struct has inconvenient
connotations requiring extra work to prevent instantions (e.g deriving
from boost::noncopya ble which causes its own problems) . IOW its a pain
in th a** using a struct this way.

regards
Andy Little

Jun 15 '06 #11

kwikius wrote:
Hi Kaz,

FWIW I posted your post separately to comp.std.c++ (rather than cross
posting)


At least I thought I had. If nothing appears on comp.std.c++ in the
next day or so, I'll try again.

regards
Andy Little

Jun 16 '06 #12
* kwikius:
kwikius wrote:
Hi Kaz,

FWIW I posted your post separately to comp.std.c++ (rather than cross
posting)


At least I thought I had. If nothing appears on comp.std.c++ in the
next day or so, I'll try again.


The comp.std.c++ robo-moderator software is currently acting up.
Sometimes it acts like a black hole. Sometimes it forwards the message
to two moderators, one of which will approve it, and one of which will
reject it on the grounds that it's very, almost suspiciously similar to
the one approved. And so on. So it's probably no fault of yours if
that message seemingly disappears: just try again.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jun 16 '06 #13

Alf P. Steinbach wrote:
* kwikius:
kwikius wrote:
Hi Kaz,

FWIW I posted your post separately to comp.std.c++ (rather than cross
posting)


At least I thought I had. If nothing appears on comp.std.c++ in the
next day or so, I'll try again.


The comp.std.c++ robo-moderator software is currently acting up.
Sometimes it acts like a black hole. Sometimes it forwards the message
to two moderators, one of which will approve it, and one of which will
reject it on the grounds that it's very, almost suspiciously similar to
the one approved. And so on. So it's probably no fault of yours if
that message seemingly disappears: just try again.


Ok. Its there!

regards
Andy Little

Jun 16 '06 #14
Hi Frederick,

Frederick Gotham wrote:
I like this! We could then have code like the following:


[snip details]

Its probably worth re-posting your post to comp.std.c++ FWIW, in the
thread with the same title as this one.

Sorry if I'm stating the blindingly obvious!

regards
Andy Little

Jun 16 '06 #15

kwikius wrote:
Hi Frederick,

Frederick Gotham wrote:
I like this! We could then have code like the following:


[snip details]

Its probably worth re-posting your post to comp.std.c++ FWIW, in the
thread with the same title as this one.


There is no point in doing that. You will invariably be told:

``Wonderful! Now all you have to do is produce a working reference
implementation
in at least one compiler, get some users and spend some time gaining
experience
with the use of that feature.''

So it ultimately doesn't matter where in Usenet you want to discuss it,
as long as it's not too wildly off topic wherever that is.

:)

Jun 16 '06 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1846
by: Agent Mulder | last post by:
Hi group, we all have our favourite 'lacking features' in C++ and as I get it, it is just a matter of pushing, until some exhausted comite accepts your new keyword. How to push? I found the answer on comp.std.c++, but it leaves open a few questions:
3
6578
by: tirath | last post by:
Hi all, I have a templated class that derives from a non-templated abstract class. How do I then cast a base class pointer to a <templated> derived class pointer in a generalised fashion? Here's what I'm generally trying to achieve: I'm building (trying to anyway) a serialization library. Here's my design:
1
1870
by: Rich | last post by:
Hi, I have a query regarding VC6 and its handling of templated copy constructors. Here goes: Take a look at the following code sample... template<class _Ty, size_t t_uiSize = 10 > class my_template
3
1863
by: mrstephengross | last post by:
Hi folks... I've been sifting through archived postings on this, but haven't quite found an answer yet. I've got a templated stand-alone function: template<typename Tvoid access(const T & t) { ; } And a class 'Foo': struct Foo { friend void access(const Foo & f);
14
1779
by: Dave Rahardja | last post by:
Hi all, Is it possible to prevent _at compile or link time_ the mulitple instantiation of a templated function? In other words, if there exists a function template <typename Tvoid fn(); I want to prevent the user from doing this: int main()
2
1690
by: mattjgalloway | last post by:
I'm having some problems with a templated member function of a templated class. Unfortunately I can't replicate it with a simple example so I know something odd must be going on!!! Basically it's like this... I have a few classes all templated by one type. Inside one of the classes is a templated member function. When I try to use this templated function in another class, the compiler complains with: error: expected primary-expression...
7
1730
by: Claudius | last post by:
Hello, in my class TopTen I need to define three constructors while only the last one, the most general in terms of templates, should be sufficient in my opinion: template <typename Tnum, short Trank, bool Tcont> TopTen<Tnum,Trank,Tcont>::TopTen( const TopTen<Tnum,Trank,Tcont& tten );
6
1498
by: Ioannis Papadopoulos | last post by:
Hi, I have the following code: #include <iostream> int foo() { std::cout << __func__ << std::endl; }
2
2939
by: domehead100 | last post by:
I have a templated class, CDerived: template <typename TValue, typename TDraw, typename TEdit ...> class CDerived : public CBase { TValue m_Value public: TValue& GetValue() const {
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.