Figured out a workaround for functor map() not compiling on VS2013.