From 6386e8d642c2bdb4e0c997e729e9721add15cf27 Mon Sep 17 00:00:00 2001 From: Alberto <alberto.nidasio@skywarder.eu> Date: Mon, 24 Oct 2022 20:35:01 +0200 Subject: [PATCH] [Deserializer] Fixed floating point digits limit --- src/shared/logger/Deserializer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/logger/Deserializer.h b/src/shared/logger/Deserializer.h index 189582f0a..ce3009c4f 100644 --- a/src/shared/logger/Deserializer.h +++ b/src/shared/logger/Deserializer.h @@ -155,6 +155,9 @@ void Deserializer::printType(T& t, std::string path, std::string prefix) // Print the header in the file *stream << T::header(); + // Set stream precision to maximum float precision + stream->precision(flt::max_digits10); + // Add the file to the vector such that it will be closed fileStreams.emplace(demangledTypeName, stream); } -- GitLab