Boost logo

Boost :

From: Sid Sacek (ssacek_at_[hidden])
Date: 2008-06-21 16:00:00


Steven,

I've never used stlport. How would stlport help with the SUN compilation problem I'm having? Am I missing something?

I was hoping the implementer of this library knew what the problem was right away and guided me to a quick solution.

What is AMDG?

-Sid Sacek

-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: Wednesday, June 18, 2008 8:39 PM
To: boost_at_[hidden]
Subject: Re: [boost] [format] Compiler error when using the Sun compiler.

AMDG

Sid Sacek wrote:
> 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?
>

Can you use stlport?

In Christ,
Steven Watanabe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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