Update of /cvsroot/boost/boost/boost/asio
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10060
Modified Files:
buffer.hpp
Log Message:
Don't perform debug check with 0-sized buffers.
Index: buffer.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/buffer.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- buffer.hpp 22 Apr 2007 07:41:54 -0000 1.7
+++ buffer.hpp 21 Jun 2007 23:29:19 -0000 1.8
@@ -118,7 +118,7 @@
inline void* buffer_cast_helper(const mutable_buffer& b)
{
#if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING)
- if (b.debug_check_)
+ if (b.size_ && b.debug_check_)
b.debug_check_();
#endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
return b.data_;
@@ -282,7 +282,7 @@
inline const void* buffer_cast_helper(const const_buffer& b)
{
#if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING)
- if (b.debug_check_)
+ if (b.size_ && b.debug_check_)
b.debug_check_();
#endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
return b.data_;
-------------------------------------------------------------------------
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