Boost logo

Boost Users :

Subject: [Boost-users] [string-algo] split() input
From: Igor R (boost.lists_at_[hidden])
Date: 2009-11-11 12:38:09


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net