Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2007-08-20 10:08:16


Author: chris_kohlhoff
Date: 2007-08-20 10:08:16 EDT (Mon, 20 Aug 2007)
New Revision: 38785
URL: http://svn.boost.org/trac/boost/changeset/38785

Log:
Add missing static keyword to the service_id_matches functions.

Text files modified:
   trunk/boost/asio/detail/service_registry.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/asio/detail/service_registry.hpp
==============================================================================
--- trunk/boost/asio/detail/service_registry.hpp (original)
+++ trunk/boost/asio/detail/service_registry.hpp 2007-08-20 10:08:16 EDT (Mon, 20 Aug 2007)
@@ -167,7 +167,8 @@
   }
 
   // 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 @@
 
   // 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);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk