release_notes.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Release Notes</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../boost.css">
  6. <LINK REL="stylesheet" HREF="theme/iostreams.css">
  7. </HEAD>
  8. <BODY>
  9. <!-- Begin Banner -->
  10. <H1 CLASS="title">Release Notes</H1>
  11. <HR CLASS="banner">
  12. <!-- End Banner -->
  13. <h4>1.46</h4>
  14. <ul>
  15. <li>
  16. Use <code>BOOST_ASSERT</code> instead of <code>assert</code>.
  17. </li>
  18. <li>
  19. Fixed flush regression, see <a href="https://svn.boost.org/trac/boost/ticket/4590">#4590</a>
  20. </li>
  21. </ul>
  22. <h4>1.44</h4>
  23. <p>Lots of fixes in this version, almost all are by Steven Watanabe.</p>
  24. <p>File descriptor fixes:</p>
  25. <ul>
  26. <li>
  27. <strong>Breaking change:</strong>
  28. new constructors and <code>open</code> methods from file descriptors/handles for
  29. <code>file_descriptor</code>, <code>file_descriptor_source</code>
  30. and <code>file_descriptor_sink</code>. See
  31. <a title="File descriptor devices referece" href="classes/file_descriptor.html">the documentation</a>
  32. for details. The old methods are still available if you define
  33. <code>BOOST_IOSTREAMS_USE_DEPRECATED</code>
  34. (<a href="https://svn.boost.org/trac/boost/ticket/3517">#3517</a>).
  35. </li>
  36. <li>
  37. Add <code>BOOST_IOSTREAMS_DECL</code> to
  38. <code>file_descriptor_source</code> and
  39. <code>file_descriptor_sink</code> fixing their use in dynamic libraries
  40. (<a href="https://svn.boost.org/trac/boost/ticket/4335">#4335</a>).
  41. </li>
  42. <li>
  43. Rejigger <code>file_descriptors</code> handling of
  44. <code>std::ios_base::openmode</code> to match <code>std::fstream</code>.
  45. In particular, truncate existing files, if
  46. <code>std::ios_base::trunc</code> is passed
  47. (<a href="https://svn.boost.org/trac/boost/ticket/3323">#3323</a>).
  48. </li>
  49. <li>
  50. Open files in append mode on Windows instead of seeking to the end at every
  51. write when <code>std::ios_base::app</code> is passed
  52. (<a href="https://svn.boost.org/trac/boost/ticket/3323">#3323</a>).
  53. </li>
  54. </ul>
  55. <p>Compression/decompression fixes:</p>
  56. <ul>
  57. <li>
  58. Don't end the stream produced by a reading through a symmetric_filter
  59. prematurely
  60. (<a href="https://svn.boost.org/trac/boost/ticket/2318">#2318</a>).
  61. </li>
  62. <li>
  63. Allow building zlib 1.2.4+, using a glob to include only source files that
  64. actually exist
  65. (<a href="https://svn.boost.org/trac/boost/ticket/4091">#4091</a>).
  66. </li>
  67. <li>
  68. Fix compressing an empty string.
  69. </li>
  70. <li>
  71. Allow bzip2 filters to be closed even if no input has been read
  72. (<a href="https://svn.boost.org/trac/boost/ticket/3348">#3348</a>).
  73. </li>
  74. <li>
  75. Throw an exception on an unexpected end of file in
  76. <code>bzip2_decompressor</code> instead of going into an infinite loop
  77. (<a href="https://svn.boost.org/trac/boost/ticket/2783">#2783</a>).
  78. </li>
  79. <li>
  80. Reset the crc for zlib when we reuse a filter.
  81. </li>
  82. <li>
  83. Make <code>gzip_decompressor</code> a <code>DualUseFilter</code>
  84. (<a href="https://svn.boost.org/trac/boost/ticket/1579">#1579</a>).
  85. </li>
  86. <li>
  87. Allow <code>bzip2_decompressor</code> to process multiple concatenated
  88. streams
  89. (<a href="https://svn.boost.org/trac/boost/ticket/3853">#3853</a>).
  90. </li>
  91. </ul>
  92. <p>Other fixes:</p>
  93. <ul>
  94. <li>
  95. Make <code>aggregate_filter</code> work with wide characters
  96. (<a href="https://svn.boost.org/trac/boost/ticket/3851">#3851</a>).
  97. </li>
  98. <li>
  99. Make <code>symmetric_filter</code> compile with <code>wchar_t</code>
  100. (<a href="https://svn.boost.org/trac/boost/ticket/3279">#3279</a>).
  101. </li>
  102. <li>
  103. Fix <code>boost/iostreams/detail/resolve.hpp</code> compilation on xlc.
  104. </li>
  105. <li>
  106. Fix definition of <code>multichar_dual_use_filter_tag</code>
  107. (<a href="https://svn.boost.org/trac/boost/ticket/3689">#3689</a>).
  108. </li>
  109. <li>
  110. Make <code>concept_adapter</code> work with custom <code>char_traits</code>
  111. (<a href="https://svn.boost.org/trac/boost/ticket/2356">#2356</a>).
  112. </li>
  113. <li>
  114. On windows, open mapped files with just read/write permissions, rather than
  115. full control - which might not be available
  116. (<a href="https://svn.boost.org/trac/boost/ticket/2996">#2996</a>).
  117. </li>
  118. <li>
  119. Make sure that <code>direct_streambuf</code> and
  120. <code>indirect_streambuf</code> are reset correctly on open
  121. (<a href="https://svn.boost.org/trac/boost/ticket/4102">#4102</a>).
  122. </li>
  123. <li>
  124. Make <code>basic_file</code> and <code>basic_file_sync</code>
  125. <code>Flushable</code>
  126. (<a href="https://svn.boost.org/trac/boost/ticket/2998">#2998</a>).
  127. </li>
  128. <li>
  129. Several documentation improvements, including
  130. documenting private mapping with <code>mapped_file</code>
  131. (<a href="https://svn.boost.org/trac/boost/ticket/1612">#1612</a>).
  132. </li>
  133. <li>
  134. Make the tests more reliable by using Boost.Filesystem's
  135. <code>unique_path</code> instead of <code>tmpnam</code>
  136. (<a href="https://svn.boost.org/trac/boost/ticket/2325">#2325</a>).
  137. </li>
  138. </ul>
  139. <h4>1.43</h4>
  140. <p>
  141. More fixes.
  142. </p>
  143. <ul>
  144. <li>
  145. Fix <code>write_device_impl&lt;ostream_tag&gt;</code>
  146. (<a href="https://svn.boost.org/trac/boost/ticket/3839">#3839</a>).
  147. </li>
  148. <li>
  149. Fix error checks after calling SetFilePointer
  150. (<a href="https://svn.boost.org/trac/boost/ticket/3953">#3953</a>).
  151. </li>
  152. <li>
  153. Gzip filter shouldn't require its source to be peekable
  154. (<a href="https://svn.boost.org/trac/boost/ticket/3723">#3723</a>).
  155. </li>
  156. <li>
  157. In <code>position_to_offset</code>, only cast to
  158. <code>stream_offset</code> after calculating <code>_Myoff</code>
  159. (<a href="https://svn.boost.org/trac/boost/ticket/3969">#3969</a>).
  160. </li>
  161. <li>
  162. <code>ptrdiff_t</code> is in <code>std</code>
  163. (<a href="https://svn.boost.org/trac/boost/ticket/2505">#2505</a>).
  164. </li>
  165. </ul>
  166. <h4>1.42</h4>
  167. <p>
  168. Fixed many outstanding issues. Thanks to Richard Smith for working on a lot
  169. of these changes.
  170. </p>
  171. <ul>
  172. <li>
  173. Allocate exceptions on the stack, not the heap (<a href="https://svn.boost.org/trac/boost/ticket/3612">#3612</a>).
  174. </li>
  175. <li>
  176. Fix unthrown exceptions. (<a href="https://svn.boost.org/trac/boost/ticket/3311">#3311</a>).
  177. </li>
  178. <li>
  179. Use <code>boost::throw_exception</code> to throw exceptions
  180. (<a href="https://svn.boost.org/trac/boost/ticket/2094">#2094</a>).
  181. </li>
  182. <li>
  183. Add missing include guard (<a href="https://svn.boost.org/trac/boost/ticket/3010">#3010</a>).
  184. </li>
  185. <li>
  186. Use the correct type for buffer_size and pback_size parameters (<a href="https://svn.boost.org/trac/boost/ticket/2894">#2894</a>).
  187. </li>
  188. <li>
  189. Support <code>boost::ref(std::istream)</code> in code_converter (<a href="https://svn.boost.org/trac/boost/ticket/3011">#3011</a>).
  190. </li>
  191. <li>
  192. Fix CRC on x64 during gzip decompression (<a href="https://svn.boost.org/trac/boost/ticket/3352">#3352</a>).
  193. </li>
  194. <li>
  195. Fix mapped file errors in windows (<a href="https://svn.boost.org/trac/boost/ticket/3505">#3505</a>).
  196. </li>
  197. <li>
  198. Improved support for Visual C++ 2010.
  199. </li>
  200. <li>
  201. Fix usage requirements in boost build.
  202. </li>
  203. <li>
  204. Fix some boundary checks in <code>restrict</code> and <code>slice</code>.
  205. </li>
  206. <li>
  207. Some minor documentation fixes.
  208. </li>
  209. <li>
  210. Avoid Apple macro substitutions for <code>check</code>.
  211. </li>
  212. </ul>
  213. <h4>1.41</h4>
  214. <p>
  215. Some old unreleased developments. There are still several open issues that
  216. should be fixed in the next version.
  217. </p>
  218. <ul>
  219. <li>
  220. Add a grep filter (<a href="https://svn.boost.org/trac/boost/ticket/1627">#1627</a>).
  221. </li>
  222. <li>
  223. Support archives with multiple members (<a href="https://svn.boost.org/trac/boost/ticket/1896">#1896</a>).
  224. </li>
  225. <li>
  226. Make <code><span class="identifier">tee</span></code> work with input
  227. streams (<a href="https://svn.boost.org/trac/boost/ticket/791">#791</a>).
  228. </li>
  229. <li>
  230. Improved filesystem interoperability.
  231. </li>
  232. <li>
  233. Several warnings fixed or suppressed (including
  234. <a href="https://svn.boost.org/trac/boost/ticket/1618">#1618</a>,
  235. <a href="https://svn.boost.org/trac/boost/ticket/1875">#1875</a>,
  236. <a href="https://svn.boost.org/trac/boost/ticket/2779">#2779</a>).
  237. </li>
  238. <li>
  239. Various other fixes (including
  240. <a href="https://svn.boost.org/trac/boost/ticket/1580">#1580</a>,
  241. <a href="https://svn.boost.org/trac/boost/ticket/1671">#1671</a>).
  242. </li>
  243. </ul>
  244. <h3>1.35</h3>
  245. <P>1. The semantics of <A HREF="functions/close.html"><CODE>close</CODE></A> has been modified:</P>
  246. <UL>
  247. <LI>Calling <CODE>close</CODE> with a <CODE>std::ios_base::openmode</CODE> other than <CODE>in</CODE> or <CODE>out</CODE> is deprecated.</LI>
  248. <LI>A new overload of <CODE>close</CODE> taking a single Device argument has been provided as a convenience.</LI>
  249. <LI><A HREF="concepts/dual_use_filter.html">DualUseFilters</A> receive only one closure notification.</LI>
  250. <LI><A HREF="guide/generic_streams.html">Generic streams and stream buffers</A> and <A HREF="guide/filtering_streams.html">filtering streams and stream buffers</A> are now <A HREF="concepts/closable.html">Closable</A>. For filtering streams and stream buffers, <CODE>close</CODE> calls <A HREF="classes/filtering_stream.html#pop"><CODE>pop</CODE></A>.
  251. </UL>
  252. <P><EM>These changes will break some existing code</EM>. They were necessary to resolve inconsistencies in the prior specification that resulted in a number of reported bugs.</P>
  253. <P>2. The function template <a href="functions/slice.html"><code>slice</code></a> has been introduced as an alias of <a href="functions/restrict.html"><code>restrict</code></a>, for platforms that treat <code>restrict</code> as a keyword.</P>
  254. <P>3. Numerous bugs have been fixed, many relating to <a href="functions/close.html"><code>close</code></a>, <a href="functions/copy.html"><code>copy</code></a>, and <a href="classes/file_descriptor.html">file descriptors</a>.</P>
  255. <!-- Begin Footer -->
  256. <HR>
  257. <P CLASS="copyright">&copy; Copyright 2008 <a href="http://www.coderage.com/" target="_top">CodeRage, LLC</a><br/>&copy; Copyright 2004-2007 <a href="https://www.boost.org/users/people/jonathan_turkanis.html" target="_top">Jonathan Turkanis</a></P>
  258. <P CLASS="copyright">
  259. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <A HREF="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)
  260. </P>
  261. <!-- End Footer -->
  262. </BODY>