|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61208 - in branches/release: boost/iostreams boost/iostreams/detail libs/iostreams
From: daniel_james_at_[hidden]
Date: 2010-04-11 16:30:22
Author: danieljames
Date: 2010-04-11 16:30:22 EDT (Sun, 11 Apr 2010)
New Revision: 61208
URL: http://svn.boost.org/trac/boost/changeset/61208
Log:
Try to avoid a warning.
Properties modified:
branches/release/boost/iostreams/ (props changed)
branches/release/libs/iostreams/ (props changed)
Text files modified:
branches/release/boost/iostreams/detail/buffer.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: branches/release/boost/iostreams/detail/buffer.hpp
==============================================================================
--- branches/release/boost/iostreams/detail/buffer.hpp (original)
+++ branches/release/boost/iostreams/detail/buffer.hpp 2010-04-11 16:30:22 EDT (Sun, 11 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