Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2004-05-29 12:29:16


Hi Daryle

----- Mensaje original -----
De: Daryle Walker <darylew_at_[hidden]>
Fecha: Sábado, Mayo 29, 2004 6:36 pm
Asunto: Re: [boost] port of test library to vacpp

> On 5/27/04 5:14 AM, "Joaquín Mª López Muñoz" <joaquin_at_[hidden]> wrote:
>
> [SNIP]
> > Maybe the following is a good compromise
> >
> > #if defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
> > enum npos_type { npos = (size_type)-1 }
> > #else
> > static const size_t npos = (size_type)-1;
> > #end
>
> Doesn't the BOOST_STATIC_CONSTANT macro cover this?
>

Not quite. BOOST_STATIC_CONSTANT generates an *unnamed*
enum, which is pecisely what was causing the error
that originated this thread.

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