|
Boost : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-30 10:56:40
Jeff Garland wrote:
>
> > Oh, I think you're right. Looks like the initialization is indeed a
> > problem. I just added "= 0" and it compiled and linked ok but looking
> > at the definition of std::locale::id I'm left wondering why the heck
> > the compiler did not complain. Hrmpf!
> >
> > Hmm, there isn't any chance that you might consider supplying a
> > definition in the header file?
>
> Then we are going to have a multiple definition problem, no?
>
No, because it's a static data member of a class template and 3.2(5)
explicitely allows this.
Markus
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk