Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-04-03 16:18:44


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Martin Bonner

> > Although I liked this at first too, it seems to me it cannot be
> > always implemented. I was now trying to add a singleton to my
> > library and I can't do it with headers alone. I need to maintain
> > the pointer to the global instance somewhere, and that
> means having a
> > global variable which cannot be defined in a header (or otherwise
> > you'll get duplicates). Unless I'm missing something, that is...
>
> Static variable in an inline function.

Oh come on guys, aren't we just getting silly? To avoid what? Adding cpp
files to the build?


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