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)