$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] loglite - A logging library (JD) (Zachary Turner)
From: Tan, Tom (Shanghai) (TTan_at_[hidden])
Date: 2009-11-01 21:15:36
>I've always found it was easiest to do something like:
>namespace boost { namespace filesystem {
>#if defined(_WIN32) || defined(WIN64)
> typedef wpath npath;
>#else
> typedef path npath;
>#endif
>} }
>and then use boost::filesystem::npath everywhere. Performance isn't
>generally the bottleneck when dealing with the filesystem, but why even
>bother with so many behind-the-scenes conversions when you can just as
>easily store everything in the type the O/S is expecting in the first
place
>with a simple typedef?
That's handy when only OS API is involved, but if you have to use it
other
Libraries which are only string-ready, e.g. LIGLITE, you have no choice.
Even
Some popular Boost libraries are only for strings, Boost.Test is one.