2009-06-04から1日間の記事一覧
Boostだとboolへのキャストはオーバーロードされてた。 // implicit conversion to "bool" #if ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__) operator bool () const { return px != 0; } 追記 その下に#elif…
Boostだとboolへのキャストはオーバーロードされてた。 // implicit conversion to "bool" #if ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__) operator bool () const { return px != 0; } 追記 その下に#elif…