Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2005-07-28 17:57:02


----- Mensaje original -----
De: Jason Hise <chaos_at_[hidden]>
Fecha: Jueves, Julio 28, 2005 11:25 pm
Asunto: Re: [boost] singleton design plan

> Michael Goldshteyn wrote:
>
> >What is:
> >
> >namespace boost
> >{
> > const class
> > {
> >
> >???
> >
> It worked with VC, but I just checked it with comeau and it failed
> to
> compile. To fix it, I had to provide a name for the class and an
> explicit default constructor. Naming the class null works,
> because then
> the class name is hidden by the global variable name and thus
> other
> instances of type null cannot be declared.

You can still gain access to the class type by
typing "class null":

class null other_null;

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk