[boost] Checking for return type -- BOOST_STATIC_ASSERT?