id summary reporter owner description type status milestone component version severity resolution keywords cc 3894 Trivial patch to fix compilation with Sun CC in alt stringstream Vadim Zeitlin Samuel Krempp "The following trivial patch fixes compilation of `boost/format/alt_sstream_impl.hpp` with Sun CC: {{{ #!diff --- a/boost/format/alt_sstream_impl.hpp 2007-11-20 12:40:28.000000000 +0100 +++ b/boost/format/alt_sstream_impl.hpp 2010-02-02 22:16:16.000000000 +0100 @@ -249,7 +249,7 @@ add_size /= 2; if(0 < add_size) { new_size += add_size; - newptr = alloc_.allocate(new_size, is_allocated_? oldptr : 0); + newptr = static_cast(alloc_.allocate(new_size, is_allocated_? oldptr : 0)); } if(0 < prev_size) }}} I don't know why (as I don't know this code at all...) but `allocate()` returns `void *` and not `char *` in this STL implementation so it fails to compile without an explicit cast. Maybe there is a better way to deal with this but I hope that if no other solution is found, this patch could be applied to allow to use Boost with Sun CC with its (old and broken...) standard library. TIA!" Patches closed Boost 1.44.0 format Boost 1.42.0 Problem fixed suncc