Revert "Minor header cleanup."

This reverts commit 4277b25a0b
This commit is contained in:
dsa-t 2022-12-08 05:04:41 +00:00
parent 2fc0cd68ed
commit f99bdb6078
1 changed files with 7 additions and 3 deletions

View File

@ -29,8 +29,8 @@
#define VECTOR2D_H_ #define VECTOR2D_H_
#include <limits> #include <limits>
#include <ostream> #include <iostream>
#include <string> #include <sstream>
#include <type_traits> #include <type_traits>
#include <math/util.h> #include <math/util.h>
@ -407,7 +407,11 @@ 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
{ {
return std::string( "( xy " ) + std::to_string( x ) + " " + std::to_string( y ) + " )"; std::stringstream ss;
ss << "( xy " << x << " " << y << " )";
return ss.str();
} }