Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ColorU8 was read into ColorU16 Replaced some calls to imbue with an appropriate call to an template function. Added some imbues to serdesstreams.
- Loading branch information
Showing
6 changed files
with
62 additions
and
52 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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include <locale> | ||
#include <utility> | ||
|
||
/** | ||
* @brief Serdes always requires the same locale. Independently of the local / C++ global locale. | ||
*/ | ||
|
||
template <typename StdStream, typename... Args> | ||
StdStream serdes_stream(Args&&... args) { | ||
StdStream ret(std::forward<Args>(args)...); | ||
ret.imbue(std::locale::classic()); | ||
return ret; | ||
} |