Commit 58b9a76a authored by Martin Marinov's avatar Martin Marinov

Don't compile IOutputStream& operator<<(IOutputStream& , const TickNumber) on Windows.

parent 5d0ccdb5
......@@ -15,12 +15,16 @@
#ifdef PROGRESS_ON
namespace Progress {
#ifndef _MSC_VER
IOutputStream& operator<<(IOutputStream& _os, const TickNumber _i)
{
static_assert(sizeof(TickNumber) == sizeof(size_t),
"These types should be equal size");
return _os.print((size_t)_i);
}
#endif // !_MSC_VER
struct Context::LogData
{
......
......@@ -21,8 +21,10 @@ typedef Base::IOutputStream IOutputStream;
//! Progress tick counter type
typedef uint64_t TickNumber;
#ifndef _MSC_VER
//! Streaming operator for TickNumber
IOutputStream& operator<<(IOutputStream& _os, const TickNumber _i);
#endif // !_MSC_VER
/*!
The name of the progress log file, uses the .csv format.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment