Boost logo

Boost :

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;
> typedef path npath;
>} }

>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
>with a simple typedef?

That's handy when only OS API is involved, but if you have to use it
Libraries which are only string-ready, e.g. LIGLITE, you have no choice.
Some popular Boost libraries are only for strings, Boost.Test is one.

Boost list run by bdawes at, gregod at, cpdaniel at, john at