Kirit Sælensminde wrote:
Hi everyone,
[...]
We ran into two problems with the filesystem library, the first we're starting with.
1) The initial problem was that we had always been compiling with the __fastcall convention, but the Boost libraries are built using __cdecl. In the end we switched to __cdecl, but should there not be a #define with the build declaration in the headers?
Speaking of the coming 1.34... Boost.Filesystem has a macro BOOST_FILESYSTEM_DECL, which should be what you are looking for.
2) The path class only uses narrow strings. For use with the standard C++ libraries this seems fine, but I think once the new standard goes through there should be wide character variants for the file library. In any case we often use bits of the Win32 API which do take wide characters. I'm just wondering if we should just copy the path class to make a wpath class path and if we do so should we give that copy back to integrate with the normal Boost library?
The Boost.Filesystem 1.34 supports both narrow an wide string.