[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    Re: [boost] port of test library to vacpp
From:       <joaquin () tid ! es>
Date:       2004-05-29 17:29:16
Message-ID: 1794c6177f79.177f791794c6 () tid ! es
[Download RAW message or body]

Hi Daryle

----- Mensaje original -----
De: Daryle Walker <darylew@hotmail.com>
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@tid.es> 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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic