
23 Nov
2007
23 Nov
'07
1:40 a.m.
shunsuke wrote:
If we are following Boost.Iterator's way, "value concept" should be placed in not FunctionObject but in transform_view. Because boost::transform_iterator can't always determine its `value_type` or `reference` from FunctionObject, you can pass explicitly `value_type` and `reference` type to boost::transform_iterator.
Say,
template<class Seq, class F, class ResultOfDeref = use_default, class ValueOf = use_default> struct transform_view;
Cool! I assume ResultOfDeref and ValueOf are metafunctions? Let's continue this discussion off-list. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net