mirror of
https://github.com/boostorg/asio.git
synced 2026-01-28 06:42:08 +00:00
Add missing static keyword to the service_id_matches functions.
[SVN r38785]
This commit is contained in:
@@ -167,7 +167,8 @@ private:
|
||||
}
|
||||
|
||||
// Check if a service matches the given id.
|
||||
bool service_id_matches(const boost::asio::io_service::service& service,
|
||||
static bool service_id_matches(
|
||||
const boost::asio::io_service::service& service,
|
||||
const boost::asio::io_service::id& id)
|
||||
{
|
||||
return service.id_ == &id;
|
||||
@@ -175,7 +176,8 @@ private:
|
||||
|
||||
// Check if a service matches the given id.
|
||||
template <typename Service>
|
||||
bool service_id_matches(const boost::asio::io_service::service& service,
|
||||
static bool service_id_matches(
|
||||
const boost::asio::io_service::service& service,
|
||||
const boost::asio::detail::service_id<Service>& /*id*/)
|
||||
{
|
||||
return service.type_info_ != 0 && *service.type_info_ == typeid(Service);
|
||||
|
||||
Reference in New Issue
Block a user