
AMDG John Maddock wrote:
Anders Moe wrote:
Hi all
I'm getting the following error in boost 1.35.0 on Solaris 10 using Sun Studio 12 :
"/home/amoe/src/boost_1_35_0/boost/format/alt_sstream_impl.hpp", line 252: Error: Cannot assign void* to char*. Where: While instantiating "boost::io::basic_altstringbuf, std::allocator>::overflow(int)". Where: Instantiated from non-template code.1 Error(s) detected.
The Boost code looks fine and legal to me: the std::allocator<char>::allocate() should return a char* which would assign to the variable just fine. Most of the tests for the iostreams lib are passing with Sun-5.9 as well, so I'm guessing either:
* Or it's a std lib issue with std::allocator - are you using Sunpro with the optional STLport support? Sun's own std lib is rather old and non-std compatible unfortunately.
It's a problem with the standard library allocator. allocate returns a void* and is wrapped in allocator_interface is the standard library to get type safety. In Christ, Steven Watanabe