From 366401a5956f332bdc954019d29e627a6706e185 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 6 Oct 2018 20:56:16 +0200 Subject: [PATCH] Fix redefinition of ofstream --- src/algorithms/PVT/adapters/rtklib_pvt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/PVT/adapters/rtklib_pvt.cc b/src/algorithms/PVT/adapters/rtklib_pvt.cc index 13bcd6faf..509d07886 100644 --- a/src/algorithms/PVT/adapters/rtklib_pvt.cc +++ b/src/algorithms/PVT/adapters/rtklib_pvt.cc @@ -509,7 +509,7 @@ bool RtklibPvt::save_assistance_to_XML() std::ofstream ofs; try { - std::ofstream ofs(eph_xml_filename_.c_str(), std::ofstream::trunc | std::ofstream::out); + ofs.open(eph_xml_filename_.c_str(), std::ofstream::trunc | std::ofstream::out); boost::archive::xml_oarchive xml(ofs); xml << boost::serialization::make_nvp("GNSS-SDR_ephemeris_map", eph_map); LOG(INFO) << "Saved GPS L1 Ephemeris map data";