[lambda] problem with if_then_else_return
I have a problem with the following statement:
return std::accumulate(
qrun_.begin(), qrun_.end(), svt,
_1 < if_then_else_return(
_2 != (acct*)0,
bind(&acct::get_avt, _2),
(unsigned)-1));
Basically, I want to find the minimal value of get_avt() over all
non-null members of qrun_ which is declared as std::vector
participants (1)
-
Zeljko Vrba