From: Yitzhak Sapir (yitzhaks_at_[hidden])
Date: 2003-02-03 11:43:07
I use MSVC6.5 and STLPort.
Well, now it seems to work, except:
1) I don't have wformat defined, and I need to define it myself. I
can see the bunch of defines that go into deciding this in the
config, and I'm not sure why in the end boost::format concludes
that because there's a using ::x compiler bug
(BOOST_NO_USING_TEMPLATE), that means I can't have
2) When I define wformat as:
typedef boost::basic_format<wchar_t> wformat;
c:\boost\boost_cvs\boost\format\format_fwd.hpp(29) : error C2065: 'charT' : undeclared identifier
on this line:
template<class charT, class Traits = BOOST_IO_STD char_traits<charT> > class basic_format;
But these are minor. I'm not sure why it didn't work before.
> -----Original Message-----
> From: Samuel Krempp [mailto:krempp_at_[hidden]]
> Sent: Monday, February 03, 2003 2:30 PM
> To: Boost mailing list
> Subject: Re: [boost] boost::format problems
> Le jeu 16/01/2003 à 15:13, Yitzhak Sapir a écrit :
> > I tried to use boost::format in a simple manner. The line
> in question is:
> > std::cout << boost::format("%0d") % some_function();
> > Unfortunately, in order for this to compile I have to:
> > 1) #include <locale>
> > 2) add a line "using namespace std;"
> > before I include <boost/format.hpp>
> what compiler (and standard lib if not the default one) are
> you using ?
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk