Removed const constraint on temporary functors