From eee4180428d97ffef99e86123134835682181594 Mon Sep 17 00:00:00 2001 From: Vincent Rouvreau Date: Wed, 14 Sep 2022 10:30:19 +0200 Subject: std::ofstream::streampos is deprecated with c++17 --- src/Tangential_complex/benchmark/XML_exporter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Tangential_complex/benchmark/XML_exporter.h') diff --git a/src/Tangential_complex/benchmark/XML_exporter.h b/src/Tangential_complex/benchmark/XML_exporter.h index 16b62eb6..38fe049f 100644 --- a/src/Tangential_complex/benchmark/XML_exporter.h +++ b/src/Tangential_complex/benchmark/XML_exporter.h @@ -157,7 +157,7 @@ class Streaming_XML_exporter { m_xml_fstream << " " << std::endl; // Save current pointer position - std::ofstream::streampos pos = m_xml_fstream.tellp(); + auto pos = m_xml_fstream.tellp(); // Close the XML file (temporarily) so that the XML file is always correct m_xml_fstream << "" << std::endl; // Restore the pointer position so that the next "add_element" will overwrite -- cgit v1.2.3