Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 1767:b268756c2cb9
fix msvc 2013 build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2015 09:34:18 +0100 |
parents | 3727a09e7b53 |
children | 1065401501fb |
comparison
equal
deleted
inserted
replaced
1766:d178fab186dd | 1767:b268756c2cb9 |
---|---|
208 void Toolbox::ReadFile(std::string& content, | 208 void Toolbox::ReadFile(std::string& content, |
209 const std::string& path) | 209 const std::string& path) |
210 { | 210 { |
211 if (!boost::filesystem::is_regular_file(path)) | 211 if (!boost::filesystem::is_regular_file(path)) |
212 { | 212 { |
213 LOG(ERROR) << "The path does not point to a regular file: " << path; | 213 LOG(ERROR) << std::string("The path does not point to a regular file: ") << path; |
214 throw OrthancException(ErrorCode_RegularFileExpected); | 214 throw OrthancException(ErrorCode_RegularFileExpected); |
215 } | 215 } |
216 | 216 |
217 boost::filesystem::ifstream f; | 217 boost::filesystem::ifstream f; |
218 f.open(path, std::ifstream::in | std::ifstream::binary); | 218 f.open(path, std::ifstream::in | std::ifstream::binary); |