mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix compilation in Visual C++ 2013.
I had to fix the following things to make Ceres compile in 2013: * Not link to 'm' (GNU math library). * Excplicitly convert an std::ostream to bool. * Include <algorithm> for std::max. Change-Id: I3ff65413baf8711364360d46dd71fd553fa63e72
This commit is contained in:
committed by
Sameer Agarwal
parent
f06b9face5
commit
88a703f44f
@@ -197,7 +197,7 @@ bool PGMImage<Real>::WriteToFile(std::string filename) const {
|
||||
outputfile << static_cast<int>(data_[i] + 0.5) << ' ';
|
||||
}
|
||||
|
||||
return outputfile; // Returns true/false
|
||||
return bool(outputfile); // Returns true/false
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user