|
From: | weaker |
Subject: | [Openexr-devel] Missing #include<algorithm> in IlmBase and OpenEXR |
Date: | Thu, 13 Mar 2014 13:16:01 +0100 |
Hi all,
when compiling IlmBase 2.1.0 and OpenEXR 2.1.0 with VS1013 (VC12), on many occasions std::min and std::max are used. However, the compiler cannot find them. This happens in
IlmBase:
ImathMatrixAlgo.cpp
testJacobiEigenSolver.cpp
OpenEXR, many files, for example:
ImfTiledOutputFile.cpp
ImfTiledMisc.cpp
ImfOutputFile.cpp
For IlmBase adding #include <algorithm> to those two files was enough.
For OpenEXR one could add #include <algorithm> to every file where the compiler complains. I added it to ImfHeader.h as this is included almost everywhere.
Best regards
weaker
[Prev in Thread] | Current Thread | [Next in Thread] |