changeset 428:6f00823be12a

explanations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 May 2013 13:06:04 +0200
parents 9d2e1009076a
children 09b3c6265a94
files OrthancServer/OrthancInitialization.cpp
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Wed May 08 12:51:39 2013 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Wed May 08 13:06:04 2013 +0200
@@ -284,6 +284,16 @@
   {
     boost::mutex::scoped_lock lock(globalMutex_);
 
+    /**
+       The following lines should be equivalent to this one: 
+
+       return (defaultDirectory_ / parameter).string();
+
+       However, for some unknown reason, some versions of Boost do not
+       make the proper path resolution when "defaultDirectory_" is an
+       absolute path. So, a hack is used below.
+     **/
+
     boost::filesystem::path p(parameter);
 
     if (p.is_absolute())