Subject: Re: [boost] Interest check: constant input matching manipulator
From: Eugene Wee (crystalrecursion_at_[hidden])
Date: 2009-04-08 22:02:19
> Spirit2 already provides such functionality:
Ah, I missed that, thanks. That said...
> I'm not entirely comfortable with "match." What about "literal" or "exactly?"
Yes, "literal" would be fine to me, though I feel that people might
not exactly understand what "exactly" means :)
> That's a lot of noise and the syntax is non-obvious for the purpose at hand.
I agree. It may be more powerful, but I think there is a benefit to
keeping it simple.
> In fact, can someone come up with a good use case for needing more
> than just character and string literals? I feel like anything more
> than that might be better left to spirit/regex/whatever.
That is my opinion as well. What I have in mind really is a direct
supplement to meet what the scanf() family can do with format strings
that include more than just the format specifiers, but I am not sure
if turning this into an input stream version of Boost.Format is a good
idea, so I shall stick with proposing a manipulator for now.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk