Global static variables
Michael Eager
eager@mvista.com
Mon May 21 19:23:00 GMT 2001
Soeren Grimm wrote:
>
> Hi,
>
> i don't know where i exactly should ask this. By i think may be this is
> the
> right mailinglist.
See Comp.lang.c++
> We have a huge project with different modules. So we wanna make our own
> output-stream.
> Like std::out, but with special features. But for this we must somehow
> ensure that there is only ONE instance of the outputstream in the whole
> project.
Look for the singleton pattern. Every implemention of iostreams does this.
--
Michael Eager eager@mvista.com 408-328-8426
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085
More information about the Gcc
mailing list