mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-26 16:52:24 +00:00
Sunpro 5.3 workaround
[SVN r27312]
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user