Boost logo

Boost :

From: Sid Sacek (ssacek_at_[hidden])
Date: 2008-06-18 14:36:09


 

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.

 

 

 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk