Boost logo

Boost Users :

From: Martin Lester (petermariusz_at_[hidden])
Date: 2006-10-31 18:33:13


boost/format/alt_sstream_impl.hpp fails to compile on
Solaris with Sun Studio 11 compiler (I think).

The error complains about being unable to assign a
void* to a char* on line 248.

I believe an explicit cast fixes this.

Martin.

(Apologies for diff filenames.)

----
--- alt_sstream_impl.hpp?revision=1.9   2006-10-31
22:55:23.000000000 +0000
+++ alt_sstream_impl.hpp        2006-10-31
22:55:58.000000000 +0000
@@ -245,7 +245,7 @@
                     add_size /= 2;
                 if(0 < add_size) {
                     new_size += add_size;
-                    newptr =
alloc_.allocate(new_size, is_allocated_? oldptr : 0);
+                    newptr = (Ch *)
alloc_.allocate(new_size, is_allocated_? oldptr : 0);
                 }
 
                 if(0 < prev_size)
		
___________________________________________________________ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net