c++: port to Sun C++ 5.12
commit54c5d5d1b400ccb1ee9a8d39140e804a4a42f02d
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Oct 2019 19:24:33 +0000 (17 12:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Oct 2019 19:25:05 +0000 (17 12:25 -0700)
tree2913ae27f48125e0d8e6f03bbcff4a818348bd56
parent693e69f289fe25be6ebac0814037810931c4e6df
c++: port to Sun C++ 5.12

The documentation for Oracle Solaris Studio 12.3 (Sun C++ 5.12
2011/11/16) says it supports C++03.  This compiler rejects the
location.cc use of std::max for some reason; I don’t know why
since I don’t use C++ as a rule.  The simplest workaround is to
open-code ‘max’.
* data/skeletons/location.cc (add_):
Do max by hand rather than relying on std::max.
Don’t include <algorithm.h>; no longer needed.
data/skeletons/location.cc