#ifndef CONVERSIONS_H_ #define CONVERSIONS_H_ #include #include class Conversions { public: Conversions() = default; ~Conversions()=default; template S cstringToString(const C[], const int); template C stringToChar(const S&); private: }; template S Conversions::cstringToString(const C tmp[], const int size) { std::stringstream cToS{}; for (auto index=0; index!=size; ++index) cToS<>tmpString; return tmpString; } template C Conversions::stringToChar(const S& tmp) { std::stringstream sToC{}; for (auto tmpElements:tmp) sToC<>tmpChar; return tmpChar; } #endif