1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility(1005): error C2338: next requires forward iterator 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\algorithm(4030): note: see reference to function template instantiation '_FwdIt std::next<_FwdIt>(_FwdIt,int)' being compiled 1> with 1> [ 1> _FwdIt=boost::iterators::transform_iterator>>,boost::iterators::use_default,boost::iterators::use_default> 1> ] 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\algorithm(4039): note: see reference to function template instantiation '_FwdIt std::max_element<_FwdIt,std::less>(_FwdIt,_FwdIt,_Pr)' being compiled 1> with 1> [ 1> _FwdIt=boost::iterators::transform_iterator>>,boost::iterators::use_default,boost::iterators::use_default>, 1> _Pr=std::less 1> ] 1> y:\source\repos\test-project\boost\range\algorithm\max_element.hpp(44): note: see reference to function template instantiation '_FwdIt std::max_element>(_FwdIt,_FwdIt)' being compiled 1> with 1> [ 1> _FwdIt=boost::iterators::transform_iterator>>,boost::iterators::use_default,boost::iterators::use_default>, 1> P=double_int, 1> It=std::_Vector_iterator>> 1> ] 1> y:\source\repos\test-project\test-project.cpp(22): note: see reference to function template instantiation 'boost::iterators::transform_iterator boost::range::max_element>>>(const ForwardRange &)' being compiled 1> with 1> [ 1> P=double_int, 1> It=std::_Vector_iterator>>, 1> _Ty=int, 1> ForwardRange=boost::range_detail::transformed_range>> 1> ]