Sunpro 5.3 workaround

[SVN r27312]
This commit is contained in:
Jonathan Turkanis
2005-02-10 20:17:43 +00:00
parent 430be18304
commit 437e6d5a1f

View File

@@ -96,7 +96,8 @@ basic_buffer<Ch, Alloc>::basic_buffer() : buf_(0), size_(0) { }
template<typename Ch, typename Alloc>
basic_buffer<Ch, Alloc>::basic_buffer(std::streamsize buffer_size)
: buf_(allocator_type().allocate(buffer_size, 0)), size_(buffer_size)
: buf_(static_cast<Ch*>(allocator_type().allocate(buffer_size, 0))),
size_(buffer_size) // Cast for SunPro 5.3.
{ }
template<typename Ch, typename Alloc>