
27 May
2004
27 May
'04
11:23 a.m.
Joaquín Mª López Muñoz wrote:
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
Well currently BOOST_NO_INCLASS_MEMBER_INITIALIZATION is defined for the latest version of vacpp (version 6) too so I would suggest just for the time being do #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 This will make it work on VisualAge too. Agreed ?