
27 May
2004
27 May
'04
12:51 p.m.
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 ; } ;