2
0
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:
Christopher Kohlhoff
2007-08-20 14:08:16 +00:00
parent 25fa47276c
commit 989ff8a599

View File

@@ -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);