Mercurial > hg > orthanc
diff Core/Logging.h @ 2134:ddc75c6c712d
Avoid hard crash if not enough memory
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 12:04:09 +0100 |
parents | 1d7a640c1dda |
children | 595cf22b3e7e |
line wrap: on
line diff
--- a/Core/Logging.h Wed Nov 09 10:21:37 2016 +0100 +++ b/Core/Logging.h Wed Nov 09 12:04:09 2016 +0100 @@ -110,6 +110,12 @@ { return (*stream_) << message; } + + // This overload fixes build problems with Visual Studio 2015 + std::ostream& operator<< (const char* message) + { + return (*stream_) << message; + } }; } }