$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: rogeeff (rogeeff_at_[hidden])
Date: 2001-12-19 14:48:34
--- In boost_at_y..., Samuel Krempp <krempp_at_c...> wrote:
> On Wed, 2001-12-19 at 19:04, rogeeff wrote:
> > 1. What is an advantage of your format functionallity over 
regular 
> > ostream one?
> 
> you give the format string in one place, and all variables later, 
like
> cout << format("x=%1,  y=%2 \n") % x % y;
> That's what many people miss when they use streams instead of 
printf I/O
Could you give a real-life example? 
Question to this example: 
Where in a format do you specify a variable type and how do you check 
it?
> 
> 
> > 2. What price for using of your format? in turms of memory and 
> > performance.
> 
> in perf, there's a 2-5 time factor when compared to the equivalent
> stream code, written by hand.
> I think the price in memory is a factor 2. (we store each piece of 
the
> final string separately, and then concatenates them all, so at this
> instant we need twice the memory needed for the final string)
> 
> 
> > 3. How portable the code you supplied is
> 
> It compiles with g++-3.0, not with g++-2.95.
> Jens Maurer reported success in compiling the code with KCC and 
comeau,
> but not Intel 5.0.1 beta.
> 
> And I don't have access to a VC++ compiler.
> 
I looked on to your code. It definetly won't work right away in VC++.
> 
> 
> regards,
> -- 
> Sam
Genadiy.