Replace use of deprecated C Standard library headers in C++ code.
Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/aos/vision/blob/range_image.cc b/aos/vision/blob/range_image.cc
index 81a8c48..bf8d09f 100644
--- a/aos/vision/blob/range_image.cc
+++ b/aos/vision/blob/range_image.cc
@@ -1,7 +1,7 @@
#include "aos/vision/blob/range_image.h"
-#include <math.h>
#include <algorithm>
+#include <cmath>
namespace aos {
namespace vision {
@@ -101,8 +101,7 @@
}
void PrintTo(const RangeImage &range, std::ostream *os) {
- *os << "{min_y=" << range.min_y()
- << ", ranges={";
+ *os << "{min_y=" << range.min_y() << ", ranges={";
bool first_row = true;
for (const auto &row : range) {
if (first_row) {