Clean up some MSVC performance warnings.
This commit is contained in:
parent
e95c4ba207
commit
a0aeb885eb
@ -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*()
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user