Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2003-06-05 05:33:03


> How do I use the conditional expression in a format string when my
> true_expression is a number? For example the format "(?1foo)" will replace
> the 1st subexpression with the string "foo", but how do I replace the 1st
> subexpression with 123? I try "(?1123)" and that fails. I can do "(?1
123)",
> but it gives me an extra space. Ideas?

Um, I think (?1(123)) will do it.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk