Files
UnrealEngine/Engine/Source/ThirdParty/FakeIt/2.0.2/include/mockutils/to_string.hpp
2025-05-18 13:04:45 +08:00

25 lines
410 B
C++

#pragma once
/*
* to_string.hpp
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Sep 10, 2014
*/
#include <string>
#include <sstream>
#include <iomanip>
namespace fakeit {
template<typename T>
static std::string to_string(const T &n) {
std::ostringstream stm;
stm << n;
return stm.str();
}
}