[string-algo] split() input

View: New views
1 Messages — Rating Filter:   Alert me  

[string-algo] split() input

by Igor R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following is split() function declaration:

template<typename SequenceSequenceT, typename RangeT, typename PredicateT>
SequenceSequenceT & split(SequenceSequenceT &Result, RangeT &Input,
PredicateT Pred, token_compress_mode_type eCompress =
token_compress_off);

Why the 2nd parameter (Input) is declared as a non-const reference? Is
it changed by the function?
The problem is that it doesn't compile (gcc 4.2) when Input is a temporary.
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users