Minor header cleanup.

This commit is contained in:
Alex 2022-12-08 07:23:21 +03:00
parent 33d76f63b0
commit 4277b25a0b
1 changed files with 3 additions and 7 deletions

View File

@ -29,8 +29,8 @@
#define VECTOR2D_H_ #define VECTOR2D_H_
#include <limits> #include <limits>
#include <iostream> #include <ostream>
#include <sstream> #include <string>
#include <type_traits> #include <type_traits>
#include <math/util.h> #include <math/util.h>
@ -407,11 +407,7 @@ VECTOR2<T> VECTOR2<T>::Resize( T aNewLength ) const
template <class T> template <class T>
const std::string VECTOR2<T>::Format() const const std::string VECTOR2<T>::Format() const
{ {
std::stringstream ss; return std::string( "( xy " ) + std::to_string( x ) + " " + std::to_string( y ) + " )";
ss << "( xy " << x << " " << y << " )";
return ss.str();
} }