From 437e6d5a1f9ab2dbc8bb760e618e5a41c2ebac72 Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Thu, 10 Feb 2005 20:17:43 +0000 Subject: [PATCH] Sunpro 5.3 workaround [SVN r27312] --- include/boost/iostreams/detail/buffer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/iostreams/detail/buffer.hpp b/include/boost/iostreams/detail/buffer.hpp index 2b57196..c2b72ac 100755 --- a/include/boost/iostreams/detail/buffer.hpp +++ b/include/boost/iostreams/detail/buffer.hpp @@ -96,7 +96,8 @@ basic_buffer::basic_buffer() : buf_(0), size_(0) { } template basic_buffer::basic_buffer(std::streamsize buffer_size) - : buf_(allocator_type().allocate(buffer_size, 0)), size_(buffer_size) + : buf_(static_cast(allocator_type().allocate(buffer_size, 0))), + size_(buffer_size) // Cast for SunPro 5.3. { } template