release_history.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  5. <meta name="ProgId" content="FrontPage.Editor.Document">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <title>Filesystem Release History</title>
  8. <link href="styles.css" rel="stylesheet">
  9. </head>
  10. <body>
  11. <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
  12. <tr>
  13. <td width="277">
  14. <a href="../../../index.htm">
  15. <img src="../../../boost.png" alt="boost.png (6897 bytes)" align="middle" width="300" height="86" border="0"></a></td>
  16. <td align="middle">
  17. <font size="7">Filesystem Release History</font>
  18. </td>
  19. </tr>
  20. </table>
  21. <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse"
  22. bordercolor="#111111" bgcolor="#D7EEFF" width="100%">
  23. <tr>
  24. <td><a href="index.htm">Home</a> &nbsp;&nbsp;
  25. <a href="tutorial.html">Tutorial</a> &nbsp;&nbsp;
  26. <a href="reference.html">Reference</a> &nbsp;&nbsp;
  27. <a href="faq.htm">FAQ</a> &nbsp;&nbsp;
  28. <a href="release_history.html">Releases</a> &nbsp;&nbsp;
  29. <a href="portability_guide.htm">Portability</a> &nbsp;&nbsp;
  30. <a href="v3.html">V3 Intro</a> &nbsp;&nbsp;
  31. <a href="v3_design.html">V3 Design</a> &nbsp;&nbsp;
  32. <a href="deprecated.html">Deprecated</a> &nbsp;&nbsp;
  33. <a href="issue_reporting.html">Bug Reports </a>&nbsp;&nbsp;
  34. </td>
  35. </table>
  36. <h2>1.72.0</h2>
  37. <ul>
  38. <li>Extracted <code>filesystem_error</code> to <code>exception.hpp</code>; <code>file_status</code> and associated enums and functions to <code>file_status.hpp</code>; <code>directory_entry</code>, <code>directory_iterator</code> and <code>recursive_directory_iterator</code> to <code>directory.hpp</code>.</li>
  39. <li><b>Deprecated:</b> For backward compatibility <code>operations.hpp</code> still includes the new headers <code>exception.hpp</code>, <code>file_status.hpp</code> and <code>directory.hpp</code>, unless <code>BOOST_FILESYSTEM_NO_DEPRECATED</code> macro is defined. These implicit includes are considered deprecated and will be removed in a future release. Users are encouraged to include the new headers directly or include <code>filesystem.hpp</code>.</li>
  40. <li>The <code>filesystem_error</code> exception is now implemented in the compiled library of Boost.Filesystem. Users may need to add linking with Boost.Filesystem library in their projects.</li>
  41. <li>On POSIX.1-2008 platforms, use <code>utimensat</code> instead of <code>utime</code>. <code>utime</code> is declared obsolete in POSIX.1-2008 and can be disabled e.g. in uClibc-ng. (<a href="https://github.com/boostorg/filesystem/pull/115">PR#115</a>)</li>
  42. <li><code>directory_iterator</code> is now left in the end state on memory allocation errors.</li>
  43. <li>In <code>directory_iterator</code> on POSIX systems, support for <code>readdir</code>/<code>readdir_r</code> has been reworked to avoid memory allocations for <code>dirent</code> structures when <code>readdir</code> is used. This reduces memory consumption and eliminates the possibility of buffer overruns in case if <code>readdir</code> produces a very long directory name.</li>
  44. <li>On Windows, use Boost.WinAPI to select the target Windows version.</li>
  45. <li><b>New:</b> Added <code>directory_options</code> enum, which reflects the same named enum from C++20. The enum is supported in <code>directory_iterator</code> and <code>recursive_directory_iterator</code> to customize iteration behavior. In particular, the iterators now support skipping directories that can&apos;t be opened due to insufficient permissions. The <code>symlink_option</code> enum is now deprecated and should be replaced with <code>directory_options</code>.</li>
  46. <li>By default, <code>recursive_directory_iterator</code> is now reset to the end state in case of errors, as required by C++20. (<a href="https://github.com/boostorg/filesystem/issues/112">#112</a>)</li>
  47. <li><b>New:</b> Added <code>directory_options::pop_on_error</code> option, which configures <code>recursive_directory_iterator</code> so that it attempts to recover from iteration errors by repeatedly invoking <code>pop()</code> until it succeeds or the end state is reached. (<a href="https://github.com/boostorg/filesystem/issues/113">#113</a>)</li>
  48. <li><b>New:</b> Added <code>directory_options::skip_dangling_symlinks</code> option, which configures <code>recursive_directory_iterator</code> so that it doesn't follow dangling directory symlinks and continues iteration instead of reporting an error.</li>
  49. <li><b>Deprecated:</b> The following members of <code>recursive_directory_iterator</code> are now marked as deprecated: <code>level()</code>, <code>no_push_pending()</code>, <code>no_push_request()</code>, <code>no_push()</code>. Users are advised to replace their use with the standard counterparts: <code>depth()</code>, <code>recursion_pending()</code>, <code>disable_recursion_pending()</code>. Note that <code>recursion_pending()</code> has the opposite meaning compared to <code>no_push_pending()</code> and <code>no_push_request()</code>. Deprecated methods will be removed in a future release.</li>
  50. <li>Fixed <code>path::lexically_relative</code> (and any dependent algorithms) to correctly handle empty, dot and dot-dot path elements in its argument. The behavior is made closer to C++17 <code>std::path::lexically_relative</code> in that empty and dot path elements are ignored and dot-dot path elements are accounted by decreasing the number of dot-dot path elements to generate in the resulting relative path. (<a href="https://github.com/boostorg/filesystem/issues/76">#76</a>)</li>
  51. </ul>
  52. <h2>1.71.0</h2>
  53. <ul>
  54. <li><b>New:</b> Added minimal support for CMake. (<a href="https://github.com/boostorg/filesystem/pull/106">PR#106</a>)</li>
  55. <li>Fixed incorrect <code>error_code</code> returned from directory iterator increment when <code>readdir_r</code> is used.</li>
  56. <li>For <code>path</code>, fixed rvalue-aware <code>operator/</code> return type to return an rvalue instead of rvalue reference. This fixes leaving a dangling reference in the user&apos;s code if the result of <code>operator/</code> is bound to a const reference. (<a href="https://github.com/boostorg/filesystem/issues/110">#110</a>)</li>
  57. <li>Fixes for better compatibility with Windows CE. (<a href="https://github.com/boostorg/filesystem/pull/24">PR#24</a>)</li>
  58. </ul>
  59. <h2>1.70.0</h2>
  60. <ul>
  61. <li><b>New:</b> Added support for movability to directory iterators.</li>
  62. <li><b>New:</b> Added file status query overloads for directory_entry. This avoids a relatively expensive OS query when file status is requested for a result of dereferencing a directory iterator. (<a href="https://github.com/boostorg/filesystem/pull/55">PR#55</a>)</li>
  63. <li>Fixed a few instances of dereferencing <code>std::string::end()</code> in path implementation.</li>
  64. <li>Fixed program termination in case of out of memory condition in directory iterators constructors and operations accepting a reference to <code>error_code</code>. (<a href="https://github.com/boostorg/filesystem/issues/58">#58</a>)</li>
  65. <li>Fixed possible linking errors caused by missing definitions of static members of <code>path</code>. (<a href="https://svn.boost.org/trac/boost/ticket/12759">#12759</a>)</li>
  66. <li>Fixed possible use of uninitialized data in directory iterator increment operation on Linux. (<a href="https://github.com/boostorg/filesystem/issues/97">#97</a>)</li>
  67. <li>Reworked <code>current_path</code> and <code>read_symlink</code> implementation to avoid possible memory exhaustion on broken or tampered with filesystems. The functions now have an internal limit of the path size they will accept from the OS, which is currently 16 MiB.</li>
  68. <li>Increased the size of the internal buffer used by <code>copy_file</code>.</li>
  69. </ul>
  70. <h2>1.69.0</h2>
  71. <ul>
  72. <li>Don&apos;t use <code>readdir_r</code> on Linux and Android since the <code>readdir</code> function is already thread-safe. (<a href="https://github.com/boostorg/filesystem/pull/68">PR#68</a>,
  73. <a href="https://github.com/boostorg/filesystem/issues/72/">#72</a>)</li>
  74. <li>Fixed crashes in <code>boost::filesystem::copy</code> due to undefined behavior in the implementation. (<a href="https://github.com/boostorg/filesystem/pull/71">PR#71</a>)</li>
  75. <li>Fixed undefined behavior in <code>boost::filesystem::directory_iterator</code> implementation. (<a href="https://github.com/boostorg/filesystem/pull/77">PR#77</a>)</li>
  76. <li>Fixed compilation errors when using directory iterators with <code>BOOST_FOREACH</code>.</li>
  77. <li>Removed workarounds for older PGI C++ compiler versions to fix compilation on the newer ones. (<a href="https://github.com/boostorg/filesystem/pull/49">PR#49</a>)</li>
  78. <li>Fixed MSVC warnings about narrowing conversions. (<a href="https://github.com/boostorg/filesystem/pull/44">PR#44</a>)</li>
  79. </ul>
  80. <h2>1.67.0</h2>
  81. <ul>
  82. <li>Fix static initialization issue that caused a crash if path operations were used before main(). (<a href="https://github.com/boostorg/filesystem/pull/62">PR#62</a>,
  83. <a href="https://github.com/boostorg/filesystem/pull/43">PR#43</a>, <a href="https://github.com/boostorg/filesystem/pull/50">PR#50</a>, <a href="https://github.com/boostorg/filesystem/pull/59">PR#59</a>)</li>
  84. </ul>
  85. <h2>1.66.0</h2>
  86. <ul>
  87. <li>Clean up some tutorial example code and fix the wording for it in the
  88. tutorial. Thanks to Anmol-Singh-Jaggi for pull request <a href="https://github.com/boostorg/filesystem/pull/11">#11</a>.</li>
  89. </ul>
  90. <h2>1.64.0</h2>
  91. <ul>
  92. <li><code>is_empty()</code>overload with <code>error_code</code> parameter
  93. should not throw on error. Thanks to ldqrk for pull request #42</li>
  94. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/10731">#10731</a> and
  95. <a href="https://svn.boost.org/trac/boost/ticket/9480">#9480</a>, <i>Evaluate
  96. path.extension only once</i>. Thanks to Daniel Krügler for pull request #41.</li>
  97. <li>Fix error propagation in <code>space(p, ec)</code>. Thanks to cmuellner
  98. for pull request #39.</li>
  99. <li>Add test/config_info.cpp to increase macro state reporting in hopes of
  100. easing debugging on remote machines.</li>
  101. <li>Fix <code>operations_test</code> failure on MinGW: MinGW defines
  102. __MINGW32__ rather than _MSC_VER, so also test for __MINGW32__ to see if
  103. setenv/unsetenv workaround needed.</li>
  104. </ul>
  105. <h2>1.63.0</h2>
  106. <ul>
  107. <li dir="ltr">
  108. <p dir="ltr"><b>Deprecated <code>generic()</code> function name</b>: The undocumented experimental class
  109. <code>path</code> member function <code>generic()</code> has been renamed <code>
  110. generic_path()</code>. Fixes
  111. <a href="https://svn.boost.org/trac/boost/ticket/11855">#11855</a>, <i>generic
  112. gives problems in C++/CLI.</i> Unless the macro BOOST_FILESYSTEM_NO_DEPRECATED
  113. is defined, the original <code>generic()</code> will continue to be supplied
  114. as a workaround for existing user code. But <code>generic()</code>is
  115. deprecated. User code should migrate to the new name.</li>
  116. <li><b>New:</b> Class <code>path</code> adds constexpr constants <code>
  117. separator</code> and <code>dot</code> of the type appropriate for the
  118. platform, and adds query functions <a href="reference.html#filename_is_dot">
  119. <code>filename_is_do</code>t</a> and <code>
  120. <a href="reference.html#filename_is_dot­_dot">filename_is_dot_dot</a></code>.
  121. These add convenience and the implementations may be more efficient that user
  122. coded equivalent functions.</li>
  123. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/12578">#12578</a>, <i>
  124. Make directory iterators able to detect when a copy has advanced to the end</i>.
  125. This bug in <code>directory_iterator</code> and <code>
  126. recursive_directory_iterator</code> equality testing has existed more than a
  127. dozen years. Nowadays test driven development would likely have detected the
  128. problem in early development. Sigh.</li>
  129. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/12495">#12495</a>, <i>
  130. <code>create_directories()</code> crashes when passed empty string as path</i>,
  131. from Samantha Ritter. Also affected <code>create_directory()</code>. Charles
  132. Olivi submitted a pull request with some particularly helpful test cases.</li>
  133. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/7307">#7307</a>, <i>
  134. remove_all(dirname,ec) throws on write protected directories.</i> This is a
  135. tough one to test. There are three internal function calls where errors might
  136. arise, and it would take too much time to write tests for each of those cases.
  137. Someday we will have Titus Winter&#39;s mock installable file system, but for now
  138. are relying on code inspection rather than testing.</li>
  139. <li>Fix a cygwin warning and a cygwin error. Thanks to thtrummer for pull
  140. request #30.</li>
  141. <li>Fixed two broken links in reference docs. Thanks to tbeu for pull
  142. request #34.</li>
  143. <li>Fix reference doc signatures for <code>path</code> stem(), extension()
  144. member functions. Thanks to faithandbrave for pull request #31</li>
  145. <li>Fix broken link to <a href="https://svn.boost.org/trac/boost/ticket/7506">#7506</a> in 1.60.0 Release History (Daniel Krügler).</li>
  146. <li>Refactor <code>push_directory()</code>internal logic so it is easier to
  147. reason about.</li>
  148. </ul>
  149. <h2>1.60.0</h2>
  150. <ul>
  151. <li dir="ltr">
  152. <p dir="ltr"><b>New:</b> Added functions <code>
  153. <a href="reference.html#lex-normal">lexically_normal</a></code>, <code>
  154. <a href="reference.html#lex-relative">lexically_relative</a></code>, <code>
  155. <a href="reference.html#op-relative">relative</a></code>, and <code>
  156. <a href="reference.html#weakly_canonical">weakly_canonical</a></code>. Many thanks to Jamie Allsop for his help and
  157. perseverance. Resolves tickets
  158. <a href="https://svn.boost.org/trac/boost/ticket/1976">#1976</a>,
  159. <a href="https://svn.boost.org/trac/boost/ticket/5897">#5897</a>,
  160. <a href="https://svn.boost.org/trac/boost/ticket/6249">#6249</a></li>
  161. <li><b>New:</b> Class <code>path</code> now has
  162. <a href="reference.html#path-iterators"> <code>reverse_iterator</code>,
  163. <code>const_reverse_iterator</code>, <code>rbegin()</code>, and <code>rend()</code></a>. </li>
  164. <li><b>New:</b> C++11 <code>noexcept</code> supplied as specified in the
  165. Filesystem TS if supported by the compiler.</li>
  166. <li><b>New:</b> C++11 move constructors and move assignments supplied as
  167. specified in the Filesystem TS if supported by the compiler. Resolves
  168. <a href="https://svn.boost.org/trac/boost/ticket/10291">#10291</a>.</li>
  169. <li><b>New:</b> Existing functions whose names changed in the Filesystem TS
  170. are now supported under both the old and new names.</li>
  171. <li><b>New: </b>Added <code><a href="reference.html#path-size">size</a>()</code>
  172. function to class <code>path</code>. Resolves
  173. <a href="https://svn.boost.org/trac/boost/ticket/6874">#6874</a>, <i>Path
  174. should have a size() member function</i>.</li>
  175. <li>Clear several spurious GCC warnings.</li>
  176. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/11733">#11733</a>, <i>
  177. Missing unistd.h include in boost/libs/filesystem/src/unique_path.cpp</i> by
  178. apply a patch from Idar Tollefsen.</li>
  179. <li>Fix a race condition in <code>unique_path</code> by applying
  180. <a href="https://github.com/boostorg/filesystem/pull/15">pull request #15</a>
  181. from Sebastian Redl. Also fixes
  182. <a href="https://svn.boost.org/trac/boost/ticket/7506">#7506</a>, <i><code>unique_path</code> Fails on Windows for Temporary User
  183. Profiles</i>.</li>
  184. <li>Fix bug in <i><code>file_status</code></i> and <i><code>
  185. recursive_directory_iterator</code></i>: C++ turns an explicit constructor
  186. with all arguments except first defaulted into non-explicit single argument
  187. constructor.</li>
  188. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/10591">#10591</a>, <i>
  189. boost::filesystem does not build on iOS 8</i>, by applying a patch submitted
  190. by Daniel Seither.</li>
  191. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/9454">#9454</a>, <i>
  192. Boost Filesystem [library build] not compiling when
  193. BOOST_FILESYSTEM_NO_DEPRECATED is defined</i>, by applying a patch submitted
  194. by Makesim.</li>
  195. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/11447">#11447</a>, <i>
  196. __OpenBSD__ macro name misspelled</i>, by applying a patch submitted by Jasper
  197. Lievisse Adriaanse.</li>
  198. <li>
  199. <p>Fix <a href="https://svn.boost.org/trac/boost/ticket/11288">#11288</a>, <i>
  200. <font face="Arial">A patch to avoid redundant string allocations</font></i>,
  201. by applying a patch submitted by Yevhen Ivannikov.</li>
  202. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/11175">#11175</a>,
  203. out-of-date documentation causing users to incorrectly expect that the library
  204. could be used with exceptions disabled.</li>
  205. <li>Resolve <a href="https://svn.boost.org/trac/boost/ticket/11175">#11166</a>
  206. by mitigating (i.e. reducing the likelihood of) a possible external file
  207. system race in <code>remove()</code>.</li>
  208. <li>
  209. <p>Fix <a href="https://svn.boost.org/trac/boost/ticket/7258">#7258</a>,
  210. <i><code>create_directories</code> returns false if the path ends with a slash</i>.
  211. Also fix related issues if path contains <i>dot</i> or <i>dot-dot</i>
  212. elements, and added test cases to the test suite.</li>
  213. <li>
  214. <p>Reference docs editorial cleanups: Use same style sheet as the
  215. rest of the documentation. Tweak tab font size. Fix excessively long lines in
  216. tables, synopsis.</li>
  217. <li>Resolve <a href="https://svn.boost.org/trac/boost/ticket/10766">
  218. #10766</a>, <i>parent_path() with redundant separator returns wrong value</i>,
  219. by adding examples and notes to the reference documentation to show why the
  220. returned value is in fact correct, and to provide rationale for that behavior.
  221. See <a href="reference.html#path-iterators">[path.itr]</a>, and
  222. <a href="reference.html#path-decomposition">[path.decompose]</a> <code>
  223. parent_path()</code> and <code>filename()</code> sections of the reference
  224. docs.</li>
  225. <li>Minor other fixes, including pull requests from Jonathan Wakely and Marcel
  226. Raad.</li>
  227. <li>Closed several tickets as duplicates or otherwise resolved by the
  228. above changes:<ul>
  229. <li><a href="https://svn.boost.org/trac/boost/ticket/7607">#7607</a>, <i>path
  230. should not infer an invisible &quot;.&quot; at the end of a path that ends with a slash;
  231. </i><a href="https://svn.boost.org/trac/boost/ticket/7258">#7258</a>,
  232. <a href="https://svn.boost.org/trac/boost/ticket/10766">#10766</a></li>
  233. <li><a href="https://svn.boost.org/trac/boost/ticket/11061">#11061</a>,
  234. <a href="https://svn.boost.org/trac/boost/ticket/11062">#11062</a>, <i>
  235. impossible to traverse the path of the reverse iterator</i>, is effectively
  236. resolved by the addition of the class <code>path</code> reverse iteration
  237. feature. The reference documentation has also been updated with
  238. <a href="reference.html#path-iterators">a note</a> warning about the
  239. limitations of class <code>path</code> iterators.</li>
  240. </ul>
  241. </li>
  242. </ul>
  243. <h2>1.59.0</h2>
  244. <ul>
  245. <li>Update the Tutorial:<ul>
  246. <li>Use C++11 in the example programs to improve clarity.</li>
  247. <li>Update the example source code show to match the actual example source
  248. code in the cpp files.</li>
  249. <li>Rerun all the examples and update the output shown in the tutorial
  250. accordingly.</li>
  251. <li>Fix spacing and other HTML presentation issues.</li>
  252. </ul>
  253. </li>
  254. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/11491">#11491</a>, <i>
  255. <code>temp_directory_path()</code> doesn&#39;t return valid temp path on Android</i>.</li>
  256. </ul>
  257. <h2>1.58.0</h2>
  258. <ul>
  259. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/6124">#6124</a>,
  260. <a href="https://svn.boost.org/trac/boost/ticket/6779">#6779</a>, and
  261. <a href="https://svn.boost.org/trac/boost/ticket/10038">#10038</a>. Cannot
  262. pass a BOOST_SCOPED_ENUM to a compiled function because it will result in an
  263. undefined reference if the library is compiled with -std=c++0x but the use is
  264. compiled in C++03 mode, or visa versa.</li>
  265. <li>Rewrite Windows implementation of <code>temp_directory_path()</code> to (1) avoid
  266. <code>GetTempPath()</code> failure if path length &gt; 130 (ticket #5300) and (2) provide a
  267. more sensible sequence of directories than provided by <code>GetTempPath()</code>, per
  268. boost list discussion &quot;[filesystem] temp_directory_path() behavior on
  269. Windows&quot;. The new sequence is:<ol>
  270. <li><i><code>%TMP%</code></i></li>
  271. <li><i><code>%TEMP%</code></i></li>
  272. <li><code><i>%LOCALAPPDATA%</i>/Temp</code></li>
  273. <li><code><i>%USERPROFILE%</i>/Temp</code></li>
  274. <li><code><i>GetWindowsDirectoryW()</i>/Temp</code></li>
  275. </ol>
  276. </li>
  277. </ul>
  278. <h2>1.57.0</h2>
  279. <ul>
  280. <li>Rework class <code>path</code> locale and codecvt implementation for increased reliability.
  281. This change was SVN revision 83021, which should have gone into 1.56.0 but
  282. unfortunately the merge didn't happen until too late.</li>
  283. <li>Fix tickets <a href="https://svn.boost.org/trac/boost/ticket/8930">#8930</a>, <a href="https://svn.boost.org/trac/boost/ticket/9054">#9054</a>,
  284. <a href="https://svn.boost.org/trac/boost/ticket/9214">#9219</a>,
  285. <a href="https://svn.boost.org/trac/boost/ticket/10228">#10228</a>, and
  286. <a href="https://svn.boost.org/trac/boost/ticket/10641">#10641</a>, all
  287. related to locales and codecvt facets.</li>
  288. <li>The net effect of the above changes and fixes should be to eliminate
  289. spurious &quot;locale::facet::_S_create_c_locale name not valid&quot; errors on Linux
  290. and other non-BSD POSIX-like systems. The error will continue to occur, as it
  291. should, when a path encoding conversion char-to-wchar_t or wchar_t-to-char is
  292. attempted in an environment without a valid C locale (for example, if the LANG
  293. environment variable is invalid or not defined).</li>
  294. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/6124">#6124</a>,
  295. <a href="https://svn.boost.org/trac/boost/ticket/6779">#6779</a>, and
  296. <a href="https://svn.boost.org/trac/boost/ticket/10038">#10038</a> - an
  297. undefined reference that occurred when the library was compiled for C++03 but
  298. the using program was compiled for C++11, or vice versa. The private library
  299. interface has been changed to use a plain-old C++03 enum. This is the fix
  300. suggested by Andy in 6779.</li>
  301. <li>The Windows implementation now treats NTFS directory junctions (also known
  302. as junctions, also known as mount points) as symlinks. This has the effect of
  303. treating directory junctions as directories, and thus supporting all
  304. operations suitable for directories. This resolves
  305. <a href="https://svn.boost.org/trac/boost/ticket/9016">#9016</a>. Directory
  306. junctions are very similar to symlinks, but may have performance or other
  307. advantages in some situations. They can be created from the command line with
  308. &quot;<code>mklink /j link target</code>&quot;. There is no plan for Boost.Filesystem to
  309. be able to create them directly other than by calling <code>std::system()</code>.</li>
  310. </ul>
  311. <h2>1.56.0</h2>
  312. <ul>
  313. <li>Reorganize <code>recursive_directory_iterator::increment</code>, adding an
  314. invariant that progress is always made, even if an error is reported by
  315. exception or error_code. Add a manually executed test, <code>
  316. test/issues/recurse_dir_iter_5403.cpp</code>. Adjust regular regression tests
  317. as needed. Thanks to Claudio Bley for the
  318. <a href="https://github.com/boostorg/filesystem/pull/4">pull request</a> - the
  319. change was incorporated into the reorganized code. Fixes
  320. <a href="https://svn.boost.org/trac/boost/ticket/5403">#5403</a> and
  321. <a href="https://svn.boost.org/trac/boost/ticket/6821">#6821</a>.</li>
  322. <li>Fix <code>canonical()</code> to treat parent of root as root. (Christian
  323. Hammerl) Fixes <a href="https://svn.boost.org/trac/boost/ticket/9683">#9683</a>
  324. and <a href="https://svn.boost.org/trac/boost/ticket/10187">#10187</a>.</li>
  325. <li>Added missing test for <code>__sun</code> macro which is defined on
  326. Solaris 10. (Chris Stylianou)</li>
  327. <li>Minor fixes and code cleanup.</li>
  328. <li>Update IDE projects to Visual Studio 2013.</li>
  329. <li>Remove unused <code>const char colon</code> to clear clang warning. (J?gen
  330. Hunold)</li>
  331. <li>Add BOOST_NOEXCEPT to <code>class filesystem_error</code>.</li>
  332. <li>Change <code>perms::all_all</code> and <code>perms::perms_mask</code> to
  333. absolute values to quiet intellisense warnings, and conform to C++11.</li>
  334. </ul>
  335. <h2>1.54.0</h2>
  336. <ul>
  337. <li>Reimplement <code>path::codecvt()</code> and <code>path::imbue()</code>
  338. with portable code that is intended to be much more robust and maintainable. A
  339. section on <a href="reference.html#path-Usage">path usage concerns</a> has
  340. been added to the reference documentation describing several concerns that
  341. arise in the context of multithreading and <code>path::codecvt()</code>.</li>
  342. </ul>
  343. <h2>1.52.0</h2>
  344. <ul>
  345. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/7239">#7239</a>, <i>Stack
  346. overflow when calling <code>create_directories(&quot;:D&quot;)</code></i>. The reported
  347. problem was a symptom of an internal bug that caused <code>path::filename()</code>
  348. and <code>path::parent_path()</code> to fail on Windows for <code>path(&quot;:&quot;)</code>,
  349. and that in turn caused other functions that depend on <code>filename()</code>
  350. or <code>parent_path()</code> to fail, such as <code>create_directories()</code>.</li>
  351. </ul>
  352. <h2>1.51.0</h2>
  353. <ul>
  354. <li>Add begin() and end() non-member functions for directory_iterator and
  355. recursive_directory_iterator so that C++11 range-based for statements work.
  356. Suggested by feature requests
  357. <a href="https://svn.boost.org/trac/boost/ticket/5896">#5896</a> and
  358. <a href="https://svn.boost.org/trac/boost/ticket/6521">#6521</a>, using the
  359. <a href="https://svn.boost.org/trac/boost/ticket/5896">#5896</a> approach.</li>
  360. <li>Add range_begin() and range_end() non-member functions for directory_iterator and
  361. recursive_directory_iterator so that
  362. <a href="http://www.boost.org/libs/foreach/">BOOST_FOREACH</a> works.</li>
  363. <li>Fix a Linux fchmodat problem affecting symlink permissions reported during
  364. discussion of <a href="https://svn.boost.org/trac/boost/ticket/6659">#6659</a>.</li>
  365. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/6659">#6659</a> and
  366. <a href="https://svn.boost.org/trac/boost/ticket/7051">#7051</a>, <i>fchmodat
  367. supported only on Solaris 11</i>. Fix for both Sun and GCC compilers. </li>
  368. </ul>
  369. <h2>1.50.0</h2>
  370. <ul>
  371. <li>Remove Filesystem Version 2 from the distribution. Version 3 is now the
  372. only distributed version. Those still using V2 are urged to migrate to V3 as
  373. soon as possible.</li>
  374. <li>Add <code>constexpr value_type preferred_separator</code> to class path.</li>
  375. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5118">#5118</a>, <i>
  376. <code>replace_extension</code> doesn't work as specified in documentation</i>. The
  377. documentation, implementation, and test cases have all had fixes applied. The
  378. documentation had failed to mention that any existing extension is removed.
  379. The behavior for simple cases has been reverted to the Version 2 behavior, but
  380. with corrections so that complex replacements now work. Two test cases from
  381. #5118 have been added.</li>
  382. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/3737">#3737</a>,
  383. <i>Boost.Filesystem does not compile on Windows Mobile</i>. On Windows, &lt;sys/stat.h&gt;
  384. is no longer included.</li>
  385. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/4065">#4065</a>,
  386. <i>Boost Filesystem lexicographic path comparison inconsistent</i>. This required
  387. multiple source code bug fixes and code cleanup, correcting problems not
  388. related to lexicographical issues.</li>
  389. <li>Add class path member function <code>compare</code> for consistency with
  390. std::string.</li>
  391. <li>Tighten BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK logic
  392. in filesystem/config.hpp so that one or the other is always defined, and both
  393. being defined is a #error.</li>
  394. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/6690">#6690</a> and
  395. <a href="http://svn.boost.org/trac/boost/ticket/6737">#6737</a>, resolving
  396. static linking related problems with VC++ 8 through 11. Note that this fix may
  397. reintroduce codecvt thread safety problems
  398. <a href="http://svn.boost.org/trac/boost/ticket/4889">#4889</a>,
  399. <a href="http://svn.boost.org/trac/boost/ticket/6320">#6320</a>, for these
  400. compilers if static linking is used.</li>
  401. <li>Add path::operator+= and concat functions to tack on things like suffixes
  402. or numbers. Suggested by Ed Smith-Rowland and others.</li>
  403. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/6809">#6809</a>,
  404. <i>Implementation of filesystem::rename() method for MS Windows is wrong</i>, by
  405. adding MOVEFILE_COPY_ALLOWED to deal with renames across drives, volumes, file
  406. systems. Fix has no effect on non-Windows systems.</li>
  407. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/6819">#6819</a>, A path operand with a source that was a one character array was
  408. treated as empty, even if it wasn't empty. Such arrays can occur in unions or
  409. in code using C variable length array idioms.</li>
  410. <li>Fix <a href="http://svn.boost.org/trac/boost/ticket/6932">#6932</a>,
  411. <i>create_directories throws exception even if error_code is specified</i>.</li>
  412. </ul>
  413. <h2>1.49.0</h2>
  414. <ul>
  415. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/3714">#3714</a>,
  416. Added test cases and fixes for class path errors when assignment or append
  417. used self or portion of self as source. </li>
  418. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/4889">#4889</a>,
  419. <a href="https://svn.boost.org/trac/boost/ticket/6320">#6320</a>, <i>Locale codecvt_facet not thread safe on Windows</i>. Move
  420. Windows, Mac OS X, locale and codecvt facet back to namespace scope. POSIX
  421. except OS X uses local static initialization (IE lazy) to ensure exceptions
  422. are catchable if environmental variables are misconfigured and to avoid use of
  423. locale(&quot;&quot;) if not actually used.</li>
  424. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5652">#5652</a>,
  425. <i>recursive_directory_iterator fails on cyclic symbolic links</i>. Thanks to Daniel Aarno for the patch.</li>
  426. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5653">#5653</a>,
  427. <i>recursive_directory_iterator(error_code) can still throw filesystem_error</i>.</li>
  428. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5900">#5900</a>, <i>directory_iterator
  429. access violation on Windows if error is thrown</i>. Thanks to Andreas Eckleder for the patch.</li>
  430. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5900#comment:2">#5900
  431. comment 2</a>, a bug in director_iterator construction with error_code argument that
  432. caused increment to be called without the ec argument being passed.</li>
  433. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5900">#5989</a> by cleaning up test suite path_test.cpp code even
  434. though the ticket itself was not a defect, and clarifying docs; iteration over a path yields
  435. generic format.</li>
  436. <li>Fix <a href="https://svn.boost.org/trac/boost/ticket/5592">#5592</a>, <i>Change Windows codecvt processing from CP_THREAD_ACP to CP_ACP</i>.</li>
  437. <li>Operations function fixes for PGI compiler, thanks to Noel Belcourt.</li>
  438. <li>Relax permissions test to reflect reality, particularly on the Sandia test
  439. platforms.</li>
  440. </ul>
  441. <h2>1.48.0</h2>
  442. <ul>
  443. <li>Added operational function <a href="reference.html#canonical">canonical()</a>,
  444. suggested by David Svoboda, who also provided pseudo-code.</li>
  445. <li>Added <a href="reference.html#hash_value">hash_value()</a> function for
  446. paths. (Daniel James)</li>
  447. <li>Fix path inserter problem (<a href="https://svn.boost.org/trac/boost/ticket/5764">#5764</a>)
  448. reported for QNX6.3.2 host (gcc-3.3.5)</li>
  449. <li>Fix problem of locale(&quot;&quot;) exception being thrown before main() starts on
  450. poorly configured (e.g. LANG=&quot;bad name&quot;) POSIX systems. Resolves the most
  451. serious aspect of tickets
  452. <a href="https://svn.boost.org/trac/boost/ticket/4688">#4688</a>,
  453. <a href="https://svn.boost.org/trac/boost/ticket/5100">#5100</a>,
  454. <a href="https://svn.boost.org/trac/boost/ticket/5289">#5289</a>.</li>
  455. </ul>
  456. <h2>1.47.0</h2>
  457. <ul>
  458. <li>Program file_status.cpp added (V3). See boost-root/libs/filesystem/v3/example.
  459. Useful both as an example and to explore how Boost.Filesystem treats various
  460. status errors.&nbsp; Run &quot;bjam&quot; (NOT &quot;bjam install&quot;) in the example directory
  461. to install in example/bin.</li>
  462. </ul>
  463. <h2>1.46.1</h2>
  464. <ul>
  465. <li>Fix fstream problem for STLPort masquerading as Dinkumware (<a href="https://svn.boost.org/trac/boost/ticket/5217">#5217</a>).</li>
  466. </ul>
  467. <h2>1.46.0</h2>
  468. <ul>
  469. <li>Version 3 of the library is now the default.</li>
  470. <li>IBM vacpp: Workaround for compiler bug affecting iterator_facade. (<a href="https://svn.boost.org/trac/boost/ticket/4912">#4912</a>)</li>
  471. <li>Verify, clarify, document that &lt;boost/config/user.hpp&gt; can be used to
  472. specify BOOST_FILESYSTEM_VERSION. (<a href="https://svn.boost.org/trac/boost/ticket/4891">#4891</a>)</li>
  473. <li>Replaced C-style assert with BOOST_ASSERT.</li>
  474. <li>Undeprecated unique_path(). Instead, add a note mentioning the workaround
  475. for lack of thread safety and possible change to cwd. unique_path() is just
  476. too convenient to deprecate!</li>
  477. <li>Cleared several GCC warnings.</li>
  478. <li>Changed V2 code to use BOOST_THROW_EXCEPTION.</li>
  479. <li>Windows: Fix status() to report non-symlink reparse point correctly.</li>
  480. <li>Add <code>symlink_option</code> to <code>recursive_directory_iterator</code>,
  481. allowing control over recursion into directory symlinks. Note that the default
  482. is changed to not recurse into directory symlinks.</li>
  483. <li><a href="reference.html">Reference</a> documentation cleanup, including
  484. fixing missing and broken links, and adding missing functions.</li>
  485. <li>Miscellaneous implementation code cleanup. </li>
  486. </ul>
  487. <hr>
  488. <p>Revised
  489. <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->07 August, 2017<!--webbot bot="Timestamp" endspan i-checksum="34770" --></p>
  490. <p>&copy; Copyright Beman Dawes, 2011</p>
  491. <p> Use, modification, and distribution are subject to the Boost Software
  492. License, Version 1.0. See <a href="http://www.boost.org/LICENSE_1_0.txt">
  493. www.boost.org/LICENSE_1_0.txt</a></p>
  494. </body>
  495. </html>