
18 Jun
2008
18 Jun
'08
4:54 p.m.
Can someone please assist? This code below doesn't compile when I use the Sun compiler. My company is currently using boost 1.33.0, and I cannot do anything about that, but I want to use boost::format. What modification can I make to the format files to fix this issue? Thanks, -Sid Sacek #include <boost/format.hpp> int main( int, char ** ) { boost::format fmt( "test %d %d\n" ); } [[[ The error: ]]] "/data/thirdparty/suncc/32/boost_1_33_0/include/boost/format/alt_sstream_impl.hpp", line 248: Error: Cannot assign void* to char*. Where: While instantiating "boost::io::basic_altstringbuf<char, std::char_traits<char>, std::allocator<char>>::overflow(int)". Where: Instantiated from non-template code. 1 Error(s) detected.