• R/O
  • SSH
  • HTTPS

hamigaki: 提交


Commit MetaInfo

修訂1777 (tree)
時間2010-07-24 16:39:17
作者hamigaki

Log Message

supported Boost.Filesytem V3 (but V2 mode only)

Change Summary

差異

--- hamigaki/trunk/hamigaki/filesystem/detail/config.hpp (revision 1776)
+++ hamigaki/trunk/hamigaki/filesystem/detail/config.hpp (revision 1777)
@@ -1,6 +1,6 @@
11 // config.hpp: configuration file for Hamigaki.Filesystem
22
3-// Copyright Takeshi Mouri 2006-2008.
3+// Copyright Takeshi Mouri 2006-2010.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -28,6 +28,14 @@
2828 #define HAMIGAKI_FILESYSTEM_DECL
2929 #endif
3030
31+#if !defined(HAMIGAKI_BOOST_FS_NAMESPACE)
32+ #if defined(BOOST_FILESYSTEM2_NAMESPACE)
33+ #define HAMIGAKI_BOOST_FS_NAMESPACE BOOST_FILESYSTEM2_NAMESPACE
34+ #else
35+ #define HAMIGAKI_BOOST_FS_NAMESPACE filesystem
36+ #endif
37+#endif
38+
3139 namespace hamigaki { namespace filesystem {
3240
3341 #if BOOST_VERSION < 103500
--- hamigaki/trunk/hamigaki/filesystem/operations.hpp (revision 1776)
+++ hamigaki/trunk/hamigaki/filesystem/operations.hpp (revision 1777)
@@ -1,6 +1,6 @@
11 // operations.hpp: the file operations
22
3-// Copyright Takeshi Mouri 2006-2008.
3+// Copyright Takeshi Mouri 2006-2010.
44 // Distributed under the Boost Software License, Version 1.0.
55 // (See accompanying file LICENSE_1_0.txt or copy at
66 // http://www.boost.org/LICENSE_1_0.txt)
@@ -26,7 +26,7 @@
2626 #define HAMIGAKI_FS_FUNC(r) \
2727 template<class Path> \
2828 inline typename boost::enable_if< \
29- boost::filesystem::is_basic_path<Path>, \
29+ boost::HAMIGAKI_BOOST_FS_NAMESPACE::is_basic_path<Path>, \
3030 r \
3131 >::type
3232 #define HAMIGAKI_FS_TYPENAME typename
Show on old repository browser