
31 Aug
2006
31 Aug
'06
3 p.m.
Hi, There are reasons for it. One of them is the posibility to store result in reference-like container. Example: vector<iterator_range<string::iterator> > tokens; split(tokens, input, token_comress_off); This way you can have a split without copying overhead. I consider this functionality interesting enough to make the interface to be like it is now. Regards, Pavol Philippe Vaucher wrote:
Of course the code :
split(tokens, input.substr(1), token_compress_off);
Should look like :
split(tokens, input.substr(1), is_any_of("/"), token_compress_on);
Philippe _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost