Re: [QuantLib-svn] SF.net SVN: quantlib:[15397] branches/oh_upgrade/ObjectHandler/oh

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib:[15397] branches/oh_upgrade/ObjectHandler/oh

Luigi Ballabio
On Wed, 2008-08-20 at 07:56 +0000, [hidden email] wrote:

> Modified: branches/oh_upgrade/ObjectHandler/oh/logger.cpp
> ===================================================================
> --- branches/oh_upgrade/ObjectHandler/oh/logger.cpp 2008-08-20 06:56:20 UTC (rev 15396)
> +++ branches/oh_upgrade/ObjectHandler/oh/logger.cpp 2008-08-20 07:56:40 UTC (rev 15397)
> @@ -79,7 +79,8 @@
>              boost::filesystem::path path(logFileName);
>  
>              // If a parent directory has been specified then ensure it exists.
> -            if (path.has_branch_path()) {
> +            //if (path.has_parent_path()) {
> +            if (path.branch_path().empty()) {//for support boost 1.35 and 1.36
>                  OH_REQUIRE(boost::filesystem::exists(path.branch_path()),
>                      "Invalid path : " << logFileName);
>              }

I'm no boost::filesystem expert, but it seems to me that
path.has_branch_path() and path.branch_path().empty() mean opposite
things. Are you sure you don't need a 'not' somewhere?

Luigi


--

Newton's Law of Gravitation:
What goes up must come down. But don't expect it to come down
where you can find it. Murphy's Law applies to Newton's.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev