From 9bbb8506e9b902bc1f23e6d24d34a851240438b3 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 24 Feb 2026 08:37:36 +0100 Subject: [PATCH] Include : - aggiunta funzione ToString per C vector unsigned int. --- EGnStringUtils.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/EGnStringUtils.h b/EGnStringUtils.h index e15724a..7e952c8 100644 --- a/EGnStringUtils.h +++ b/EGnStringUtils.h @@ -278,6 +278,13 @@ ToString( unsigned int nVal, int nPrec = 1, int nRadix = 10, int* pnErr = nullpt *pnErr = 0 ; return szBuff ; } +template +const std::string ToString( const unsigned int (&nVal)[size], int nPrec = 1) + { std::string sDest ; sDest.reserve( 8 * size) ; + for ( const auto& nV : nVal) + sDest += ToString( nV, nPrec) + "," ; + sDest.pop_back() ; + return sDest ; } inline const std::string ToStringAdv( long long nVal, int nPrec = 1, int nRadix = 10, int* pnErr = nullptr)