Hoisted by my own petard. ;_;Except when it is, like Elysia's "I put an assertion here as a placeholder until further notice" kind of thing
I think it fails as a stream manipulator. Certainly a "skip this many characters" could be a manipulator ("std::cin >> skip(15)"), and "always skip this character" could be a manipulator ("std::cin >> ignore('$')"), but extracting a literal from a stream screams overloaded stream operation to me.Anyway, is anyone interested in seeing this functionality, whether as input manipulator or as operator>> overloads, added to the C++ standard?
And yea, it could be a standard feature, but until they provide more internationalization primitives (such as the Unicode algorithm for collation) I'm not sure how useful it would be. I could put a literal literal ("std::cin >> literal("This is English.")") and require an exact binary match, but a locale literal would be spectacular ("std::cin >> literal("na´vetÚ")") for dealing with those combining characters and things.