From 7051123850880056627
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8b68e2adc532f38b,start
X-Google-Attributes: gidf78e5,public
From: "Hicham BOUHMADI" <hicham@citeweb.net>
Subject: template class visible from two namespaces
Date: 2000/08/03
Message-ID: <8mc4s7$e8g$1@reader1.imaginet.fr>#1/1
X-Deja-AN: 654084808
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Priority: 3
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 965321245 mail2news:7546 mail2news mail2news.demon.co.uk
Organization: ImagiNET / Colt Internet
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MSMail-Priority: Normal
NNTP-Posting-Date: 3 Aug 2000 15:59:03 GMT
Newsgroups: comp.std.c++

Hi.
I have two question. I want a class to be visible from 2 namespaces.
in the case of a non-template class. I find the solution that consist on
declaring it in one namespace and typedef-ing it in the second. This works
fine... :-)
The problem is that my real class is a template class.
So is there any way to typedef a template class based on a template class. I
want to write something like this:
namespace A {
    template <typename X> class toto {};
}
namespace B {
    template <typename X>    typedef    A::toto<X>    toto<X>
}

If there is no way to make such typedefs, so how can I make my super class
toto be reachable from A and from B?
Thanks lot!
Hicham BOUHMADI                          hicham@citeweb.net



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




