diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h index 14c2e22f66..d3349b31d8 100644 --- a/libs/kimath/include/math/vector2d.h +++ b/libs/kimath/include/math/vector2d.h @@ -29,8 +29,8 @@ #define VECTOR2D_H_ #include -#include -#include +#include +#include #include #include @@ -407,7 +407,11 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const template const std::string VECTOR2::Format() const { - return std::string( "( xy " ) + std::to_string( x ) + " " + std::to_string( y ) + " )"; + std::stringstream ss; + + ss << "( xy " << x << " " << y << " )"; + + return ss.str(); }