Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-05-27 07:51:20


Joaquín Mª López Muñoz wrote:

>>#if defined(__IBMCPP__)
>>// VisualAge compiler can't handle 64 bit enums
>>static const size_t npos = -1 ;
>>#else
>>enum npos_type { npos = (size_type)-1 } ;
>>#endif
>>
>
>
> How come this works if
> BOOST_NO_INCLASS_MEMBER_INITIALIZATION tells
> us otherwise?

Good question. I should have explained of course.
Well vacpp has only in some circurmstances a problem with the in class
member initialization. For instance following does not work (confirmed
by IBM):

class A
{
public:
   static const int value = true ;
} ;

int main()
{
   int v1 = A::value ; // does work
   bool v2 = A::value ; // does not work
   return 0 ;
} ;


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