Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-01-20 18:24:09

On Sunday 20 January 2002 06:05 pm, you wrote:
> ----- Original Message -----
> I do really like the Python syntax:
> "%s %s." % ("Hello", "world")
> The comma combines the two strings in a tuple, the parentheses are
> there because of operator precedence rules, and '%' is an overloaded
> operator that performs printf-style formatting if the lhs is a string.

It's unfortunate that this is impossible to do generally in C++, because one
can't overload, e.g., operator,(int, in)


Boost list run by bdawes at, gregod at, cpdaniel at, john at