Attempt to fix boost::scoped_ptr to bool conversion error.