Merge pull request #238 from lioncash/fix-deprecations Replace use of the deprecated mem_fun function with mem_fn.