Re: loglite - A logging library (JD) (Zachary Turner)

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: loglite - A logging library (JD) (Zachary Turner)

by Tan, Tom (Shanghai) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>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.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost