Clean up some MSVC performance warnings.

This commit is contained in:
chris 2004-04-14 03:35:34 +00:00
parent e95c4ba207
commit a0aeb885eb
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ private:
bool is_set(socket_type descriptor) const
{
return FD_ISSET(descriptor, &fd_set_);
return FD_ISSET(descriptor, &fd_set_) != 0;
}
operator fd_set*()

View File

@ -130,7 +130,7 @@ private:
// Determine whether this service is the given type.
virtual bool is_same_type(const std::type_info& other_info)
{
return other_info == typeid(Service);
return other_info == typeid(Service) ? true : false;
}
// Get a pointer to the contained service.