Topic: Static class linkage?
Author: "Bill Wade" <bill.wade@stoner.com>
Date: 1999/10/30 Raw View
rado42 wrote in message <7ujku7$ich$1@nnrp1.deja.com>...
>Is it possible to force class members static linkage (e.g.
>by anonimous namespace?)
You can put an entire class into the unnamed namespace. In that case all of
its members are there also.
You could use multiple inheritance to make a class that inherited from both
named-namespace and unnamed-namespace classes. You would only be allowed to
define your class in one translation unit. In other translation units only
the named-namespace base class scope would be available.
---
[ 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 ]
Author: rado42 <rado42@my-deja.com>
Date: 1999/10/21 Raw View
Hi,
Is it possible to force class members static linkage (e.g.
by anonimous namespace?)
--
rado
http://members.tripod.com/~radosoft
Sent via Deja.com http://www.deja.com/
Before you buy.
---
[ 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 ]