Strict standards on passing lambda by reference