Update of /cvsroot/boost/boost/boost/asio/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5381

Modified Files:
        service_registry.hpp 
Log Message:
Fix crash in comparison of service ids.

Index: service_registry.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/service_registry.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- service_registry.hpp        4 Jan 2007 05:53:01 -0000       1.3
+++ service_registry.hpp        20 Feb 2007 13:15:08 -0000      1.4
@@ -178,7 +178,7 @@
   bool service_id_matches(const boost::asio::io_service::service& service,
       const boost::asio::detail::service_id<Service>& /*id*/)
   {
-    return !!(*service.type_info_ == typeid(Service));
+    return service.type_info_ != 0 && *service.type_info_ == typeid(Service);
   }
 
   // Mutex to protect access to internal data.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to