-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f86d9e
commit 3ab08a5
Showing
3 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,8 @@ typedef uint32_t HRESULT; // Needed for PPLX | |
typedef wchar_t char_t ; | ||
typedef std::wstring string_t; | ||
#define _XPLATSTR(x) L ## x | ||
#define _XPLATTOSTR(x) std::to_wstring(x) | ||
template<typename T> | ||
std::wstring to_tstring(const T& x) { return std::to_wstring(x); } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
BillyONeal
Author
Member
|
||
typedef std::wostringstream ostringstream_t; | ||
typedef std::wofstream ofstream_t; | ||
typedef std::wostream ostream_t; | ||
|
@@ -68,7 +69,8 @@ typedef std::wstringstream stringstream_t; | |
typedef char char_t; | ||
typedef std::string string_t; | ||
#define _XPLATSTR(x) x | ||
#define _XPLATTOSTR(x) std::to_string(x) | ||
template<typename T> | ||
std::string to_tstring(const T& x) { return std::to_string(x); } | ||
typedef std::ostringstream ostringstream_t; | ||
typedef std::ofstream ofstream_t; | ||
typedef std::ostream ostream_t; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to_string_t would make a lot more sense than to_tstring?