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 
boost::wformat.

2) When I define wformat as:
  typedef boost::basic_format<wchar_t> wformat;
I get:
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:[EMAIL PROTECTED]]
> 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 ?
> 
> 
> -- 
> Samuel
> 
> _______________________________________________
> Unsubscribe & other changes: 
> http://lists.boost.org/mailman/listinfo.cgi/boost
> 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to