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

Modified Files:
        socket_option.hpp 
Log Message:
Fix ip::multicast::enable_loopback option so that it works on Solaris.


Index: socket_option.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/ip/detail/socket_option.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- socket_option.hpp   20 Feb 2007 13:19:53 -0000      1.4
+++ socket_option.hpp   6 May 2007 22:35:35 -0000       1.5
@@ -38,6 +38,12 @@
 class boolean
 {
 public:
+#if defined(__sun)
+  typedef unsigned char value_type;
+#else
+  typedef int value_type;
+#endif
+
   // Default constructor.
   boolean()
     : value_(0)
@@ -95,14 +101,14 @@
 
   // Get the address of the boolean data.
   template <typename Protocol>
-  int* data(const Protocol&)
+  value_type* data(const Protocol&)
   {
     return &value_;
   }
 
   // Get the address of the boolean data.
   template <typename Protocol>
-  const int* data(const Protocol&) const
+  const value_type* data(const Protocol&) const
   {
     return &value_;
   }
@@ -123,7 +129,7 @@
   }
 
 private:
-  int value_;
+  value_type value_;
 };
 
 // Helper template for implementing unicast hops options.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to