
19 Nov
2008
19 Nov
'08
10:26 p.m.
AMDG Tomas Puverle wrote:
Why (and when?) was this change introduced? This make Boost Range much in generic code, such as
template<class Range> void foo(const Range & r_) { if (r_.empty()) {...} }
template<class T> bool is_singular_or_empty(const T& t) { return(t.empty()); } template<class T> bool is_singular_or_empty(const iterator_range<T>& t) { return(t.is_singular() || t._empty()); } ? In Christ, Steven Watanabe