
28 Nov
2008
28 Nov
'08
4:05 p.m.
on Thu Nov 27 2008, Joaquin M Lopez Munoz <joaquin-AT-tid.es> wrote:
why can't you just have
namespace boost{
template<typename _It,typename Val,typenameBinPred> _It lower_bound(_It itBegin,_It itEnd,const Val &x,BinPred pred){ using namespace boost; return partition_point(itBegin,itEnd,!boost::bind(pred,_1,x)); // ADL used }
}
One reason is that the above uses identifiers reserved to the implementation. ;-) -- Dave Abrahams BoostPro Computing http://www.boostpro.com