mathlib: toString() parameter changed to const reference

This commit is contained in:
Ettl Martin 2010-11-20 14:21:18 +01:00
parent cda44e0c39
commit f10e433593
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public:
static double toDoubleNumber(const std::string & str); static double toDoubleNumber(const std::string & str);
template<typename T> template<typename T>
static std::string toString(T d) static std::string toString(const T &d)
{ {
std::ostringstream result; std::ostringstream result;
result << d; result << d;