Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2133:15ae532af70e | 2134:ddc75c6c712d |
---|---|
108 | 108 |
109 std::ostream& operator<< (const std::string& message) | 109 std::ostream& operator<< (const std::string& message) |
110 { | 110 { |
111 return (*stream_) << message; | 111 return (*stream_) << message; |
112 } | 112 } |
113 | |
114 // This overload fixes build problems with Visual Studio 2015 | |
115 std::ostream& operator<< (const char* message) | |
116 { | |
117 return (*stream_) << message; | |
118 } | |
113 }; | 119 }; |
114 } | 120 } |
115 } | 121 } |
116 | 122 |
117 #endif // ORTHANC_ENABLE_LOGGING | 123 #endif // ORTHANC_ENABLE_LOGGING |