[Commits] [wesnoth/wesnoth] b05773: resolve ambiguities in referring to std::abs, in m...
GitHub
noreply at github.com
Mon Oct 27 06:44:36 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: b05773c4099e9a2c987adc0c656ec7ed96dec0ff
https://github.com/wesnoth/wesnoth/commit/b05773c4099e9a2c987adc0c656ec7ed96dec0ff
Author: Chris Beck <render787 at gmail.com>
Date: 2014-10-27 (Mon, 27 Oct 2014)
Changed paths:
M src/map_location.hpp
Log Message:
-----------
resolve ambiguities in referring to std::abs, in map_location.hpp
Ancestral reported compilation errors with clang on OS X,
basically similar to what is reported here:
https://github.com/Project-OSRM/osrm-backend/issues/1000
I fix it by replacing calls to std::abs, with calls to _abs, a
function pointer I define to be & _abs, so that I can control
exactly which overload is selected and thus resolve the ambiguity.
More information about the Commits
mailing list