MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / ToString

Function ToString

SampleFramework12/v1.00/Utility.h:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78// Converts a number to a string
79template<typename T> inline std::wstring ToString(const T& val)
80{
81 std::wostringstream stream;
82 if(!(stream << val))
83 throw Exception(L"Error converting value to string");
84 return stream.str();
85}
86
87// Converts a number to an ansi string
88template<typename T> inline std::string ToAnsiString(const T& val)

Callers 1

ToStringMethod · 0.85

Calls 1

ExceptionClass · 0.85

Tested by

no test coverage detected