Receive references in replace_copy_if's functor to avoid significant performance penalty.
Merge pull request #544 from jaredhoberock/replace_copy_if

Receive references in replace_copy_if's functor to avoid significant per...