nicer log

This commit is contained in:
Johannes Wendel
2020-01-16 21:46:28 +01:00
parent 0f3e5e3857
commit d5d267ec5f
4 changed files with 22 additions and 21 deletions

View File

@@ -4,5 +4,21 @@
* Created on: Jan 16, 2020
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#include <string>
#include <sstream>
namespace help
{
template<typename Container>
std::string make_list_string(Container container)
{
std::stringstream ss;
for(auto & elem : container)
{
ss << std::to_string(elem) << ", ";
}
ss << std::string(2, 0x08);
return std::string("[") + ss.str() + "]";
}
}