You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
279 B
15 lines
279 B
#pragma once
|
|
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
/**
|
|
* Helper function to get a string out of the stream operator.
|
|
* Used for __str__ functions.
|
|
*/
|
|
template<typename T>
|
|
std::string streamToString(T const & t) {
|
|
std::stringstream ss;
|
|
ss << t;
|
|
return ss.str();
|
|
}
|