|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61117 - trunk/boost/iostreams/detail
From: daniel_james_at_[hidden]
Date: 2010-04-06 18:17:37
Author: danieljames
Date: 2010-04-06 18:17:36 EDT (Tue, 06 Apr 2010)
New Revision: 61117
URL: http://svn.boost.org/trac/boost/changeset/61117
Log:
Try to avoid a warning on Visual C++ with stlport. Refs #4074
It would be better to use more consistent types.
Text files modified:
trunk/boost/iostreams/detail/buffer.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/iostreams/detail/buffer.hpp
==============================================================================
--- trunk/boost/iostreams/detail/buffer.hpp (original)
+++ trunk/boost/iostreams/detail/buffer.hpp 2010-04-06 18:17:36 EDT (Tue, 06 Apr 2010)
@@ -148,7 +148,12 @@
template<typename Ch, typename Alloc>
inline basic_buffer<Ch, Alloc>::~basic_buffer()
-{ if (buf_) allocator_type().deallocate(buf_, size_); }
+{
+ if (buf_) {
+ allocator_type().deallocate(buf_,
+ static_cast<BOOST_DEDUCED_TYPENAME Alloc::size_type>(size_));
+ }
+}
template<typename Ch, typename Alloc>
inline void basic_buffer<Ch, Alloc>::resize(int buffer_size)
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