From e666681a6d9d7124962e554cebc8631fbe3e8bc6 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Sat, 21 Dec 2024 18:23:50 +0100 Subject: [PATCH] Specify the `std` namespace for `fixed`. --- src/models/FGGasCell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/FGGasCell.cpp b/src/models/FGGasCell.cpp index 45281b8b85..ee38686ad7 100644 --- a/src/models/FGGasCell.cpp +++ b/src/models/FGGasCell.cpp @@ -449,7 +449,7 @@ void FGGasCell::Debug(int from) if (debug_lvl & 1) { // Standard console startup message output if (from == 0) { // Constructor FGLogging log(fdmex->GetLogger(), LogLevel::DEBUG); - log << " Gas cell holds " << fixed << Contents << " mol " << type << "\n"; + log << " Gas cell holds " << std::fixed << Contents << " mol " << type << "\n"; log << " Cell location (X, Y, Z) (in.): " << vXYZ(eX) << ", " << vXYZ(eY) << ", " << vXYZ(eZ) << "\n"; log << " Maximum volume: " << MaxVolume << " ft3\n"; @@ -474,7 +474,7 @@ void FGGasCell::Debug(int from) } if (debug_lvl & 8 ) { // Runtime state variables FGLogging log(fdmex->GetLogger(), LogLevel::DEBUG); - log << " " << type << " cell holds " << fixed << Contents << " mol\n"; + log << " " << type << " cell holds " << std::fixed << Contents << " mol\n"; log << " Temperature: " << Temperature << " Rankine\n"; log << " Pressure: " << Pressure << " lbs/ft2\n"; log << " Volume: " << Volume << " ft3\n"; @@ -801,7 +801,7 @@ void FGBallonet::Debug(int from) if (debug_lvl & 1) { // Standard console startup message output if (from == 0) { // Constructor FGLogging log(MassBalance->GetExec()->GetLogger(), LogLevel::DEBUG); - log << " Ballonet holds " << fixed << Contents << " mol air\n"; + log << " Ballonet holds " << std::fixed << Contents << " mol air\n"; log << " Location (X, Y, Z) (in.): " << vXYZ(eX) << ", " << vXYZ(eY) << ", " << vXYZ(eZ) << "\n"; log << " Maximum volume: " << MaxVolume << " ft3\n"; @@ -827,7 +827,7 @@ void FGBallonet::Debug(int from) } if (debug_lvl & 8 ) { // Runtime state variables FGLogging log(MassBalance->GetExec()->GetLogger(), LogLevel::DEBUG); - log << " Ballonet holds " << fixed << Contents << " mol air\n"; + log << " Ballonet holds " << std::fixed << Contents << " mol air\n"; log << " Temperature: " << Temperature << " Rankine\n"; log << " Pressure: " << Pressure << " lbs/ft2\n"; log << " Volume: " << Volume << " ft3\n";