diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-08 20:53:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-08 20:53:28 +0100 |
commit | 34d885ba5242bbb7c55adad3866b409c654f40d0 (patch) | |
tree | 78f470b22485e4c160b8aadf239fd907cd4f8cb7 | |
parent | Explain yourself! (when opening a device fails) (diff) | |
download | p2pvr-34d885ba5242bbb7c55adad3866b409c654f40d0.tar.bz2 p2pvr-34d885ba5242bbb7c55adad3866b409c654f40d0.tar.xz p2pvr-34d885ba5242bbb7c55adad3866b409c654f40d0.zip |
Fix comically broken DateTime stream writer
-rw-r--r-- | p2pvr/ice/commonHelpers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2pvr/ice/commonHelpers.cpp b/p2pvr/ice/commonHelpers.cpp index 8f5519a..95d4ad6 100644 --- a/p2pvr/ice/commonHelpers.cpp +++ b/p2pvr/ice/commonHelpers.cpp @@ -5,8 +5,8 @@ namespace AdHoc { template<const char * const & S, int start, typename stream, char size, char pad, char ... sn> - struct StreamWriter<S, start, stream, '%', size, pad, sn...> : - public StreamWriterBase<S, start, BOOST_PP_VARIADIC_SIZE(C) + 1, stream, sn...> { + struct StreamWriter<S, start, stream, '%', size, pad, 'p', sn...> : + public StreamWriterBase<S, start, 4, stream, sn...> { template<typename P, typename ... Pn> static void write(stream & s, const P & p, const Pn & ... pn) { @@ -17,7 +17,7 @@ namespace AdHoc { } namespace Common { - AdHocFormatter(DateTimeFormat, "%\x40p-%\x20p-%\x20pT%\x20p:%\x20p"); + AdHocFormatter(DateTimeFormat, "%0p-%0p-%0pT%0p:%0p"); std::ostream & operator<<(std::ostream & o, const Common::DateTime & dt) { |