From 0c92f770f2b88ca176a07c2db3fc2e68b422b582 Mon Sep 17 00:00:00 2001 From: Osenberg-Y Date: Fri, 27 Jul 2018 14:50:02 +0800 Subject: [PATCH] Fix make tools compile fail when using opencv2.4.x version --- tools/writer/device_writer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/writer/device_writer.cc b/tools/writer/device_writer.cc index 5fe2e95..05a4e46 100644 --- a/tools/writer/device_writer.cc +++ b/tools/writer/device_writer.cc @@ -311,8 +311,8 @@ DeviceWriter::dev_info_t DeviceWriter::LoadDeviceInfo( LOG(FATAL) << "Failed to load file: " << filepath; } DeviceInfo info; - info.lens_type = Type(fs["lens_type"].string()); - info.imu_type = Type(fs["imu_type"].string()); + info.lens_type = Type(std::string(fs["lens_type"])); + info.imu_type = Type(std::string(fs["imu_type"])); fs["nominal_baseline"] >> info.nominal_baseline; fs.release(); return info;