From 19341b038f90e2b1374f8f5bd9f3a79dc35b44d2 Mon Sep 17 00:00:00 2001 From: Jerzy Jamroz Date: Thu, 28 Dec 2023 10:26:18 +0100 Subject: [PATCH] fix: std::to_string is not suported within RTEMs. --- evrMrmApp/src/drvem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evrMrmApp/src/drvem.cpp b/evrMrmApp/src/drvem.cpp index 7bab02e1a..83cf583a7 100644 --- a/evrMrmApp/src/drvem.cpp +++ b/evrMrmApp/src/drvem.cpp @@ -294,10 +294,12 @@ try{ // map TCLKx starting from GTX_FPUV_OFFSET (as in the documentation) outputs[std::make_pair(OutputFPUniv, i + GTX_FPUV_OFFSET)] = new MRMOutput(SB() << n << ":FrontUnivOut" << i + GTX_FPUV_OFFSET, this, OutputFPUniv, i + GTX_FPUV_OFFSET); // CMLs for TCLKx + std::ostringstream mrmcml_stm; + mrmcml_stm << n << ":CML" << i; if(model().compare("mTCA-EVR-300RF") == 0 && i == 4) - shortcmls[i] = new MRMCML(n + ":CML" + std::to_string(i), i, *this, MRMCML::typeTG300, form); + shortcmls[i] = new MRMCML(mrmcml_stm.str(), i, *this, MRMCML::typeTG300, form); else - shortcmls[i] = new MRMCML(n + ":CML" + std::to_string(i), i, *this, conf->kind, form); + shortcmls[i] = new MRMCML(mrmcml_stm.str(), i, *this, conf->kind, form); } } else if(conf->nCML && ver>=MRFVersion(0,4)){ shortcmls.resize(conf->nCML);