blob: c67535ea5d5957e40d767176915e7c4605e332a7 [file] [log] [blame]
Brian Silvermanaf2eaa82018-08-04 17:28:31 -07001<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>Release Notes</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7<link rel="home" href="../../index.html" title="Boost.Optional">
8<link rel="up" href="../../optional/reference.html" title="Reference">
9<link rel="prev" href="dependencies_and_portability/optional_reference_binding.html" title="Optional Reference Binding">
10<link rel="next" href="acknowledgements.html" title="Acknowledgements">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="dependencies_and_portability/optional_reference_binding.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../optional/reference.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="acknowledgements.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_optional.reference.relnotes"></a><a class="link" href="relnotes.html" title="Release Notes">Release Notes</a>
28</h3></div></div></div>
29<h5>
30<a name="boost_optional.reference.relnotes.h0"></a>
31 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_x_xx"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_x_xx">Boost Release
32 X.XX</a>
33 </h5>
34<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
35 Now <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">optional</span></code> is specialized for reference
36 parameters. This way the <code class="computeroutput"><span class="keyword">sizeof</span></code>
37 of optional reference is that of a pointer, and a number of bugs is avoided.
38 </li></ul></div>
39<h5>
40<a name="boost_optional.reference.relnotes.h1"></a>
41 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_1_60"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_1_60">Boost Release
42 1.60</a>
43 </h5>
44<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
45 Changed the implementation of <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none</span></code>
46 again. Now it is a const object with internal linkage (as any other tag).
47 This fixes <a href="https://svn.boost.org/trac/boost/ticket/11203" target="_top">Trac
48 #11203</a>.
49 </li></ul></div>
50<h5>
51<a name="boost_optional.reference.relnotes.h2"></a>
52 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_1_59"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_1_59">Boost Release
53 1.59</a>
54 </h5>
55<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
56<li class="listitem">
57 For C++03 compilers, added 0-argument overload for member function <code class="computeroutput"><span class="identifier">emplace</span><span class="special">()</span></code>,
58 and therewith removed the dependency on <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">utility</span><span class="special">/</span><span class="identifier">in_place_factory</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>.
59 </li>
60<li class="listitem">
61 Fixed <a href="https://svn.boost.org/trac/boost/ticket/11241" target="_top">Trac
62 #11241</a>.
63 </li>
64</ul></div>
65<h5>
66<a name="boost_optional.reference.relnotes.h3"></a>
67 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_1_58"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_1_58">Boost Release
68 1.58</a>
69 </h5>
70<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
71<li class="listitem">
72 <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none_t</span></code> is no longer convertible from
73 literal <code class="computeroutput"><span class="number">0</span></code>. This avoids a
74 bug where <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">rational</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;&gt;</span>
75 <span class="identifier">oi</span> <span class="special">=</span>
76 <span class="number">0</span><span class="special">;</span></code>
77 would initialize an optional object with no contained value.
78 </li>
79<li class="listitem">
80 Improved the trick that prevents streaming out <code class="computeroutput"><span class="identifier">optional</span></code>
81 without header <code class="computeroutput"><span class="identifier">optional_io</span><span class="special">.</span><span class="identifier">hpp</span></code>
82 by using safe-bool idiom. This addresses <a href="https://svn.boost.org/trac/boost/ticket/10825" target="_top">Trac
83 #10825</a>.
84 </li>
85<li class="listitem">
86 IOStream operators are now mentioned in documentation.
87 </li>
88<li class="listitem">
89 Added a way to manually disable move semantics: just define macro <code class="computeroutput"><span class="identifier">BOOST_OPTIONAL_CONFIG_NO_RVALUE_REFERENCES</span></code>.
90 This can be used to work around <a href="https://svn.boost.org/trac/boost/ticket/10399" target="_top">Trac
91 #10399</a>.
92 </li>
93<li class="listitem">
94 It is no longer possible to assign <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">U</span><span class="special">&gt;</span></code> to <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</span></code> when <code class="computeroutput"><span class="identifier">U</span></code>
95 is not assignable or convertible to <code class="computeroutput"><span class="identifier">T</span></code>
96 (<a href="https://svn.boost.org/trac/boost/ticket/11087" target="_top">Trac #11087</a>).
97 </li>
98<li class="listitem">
99 Value accessors now work correctly on rvalues of <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&amp;&gt;</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/10839" target="_top">Trac
100 #10839</a>).
101 </li>
102</ul></div>
103<h5>
104<a name="boost_optional.reference.relnotes.h4"></a>
105 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_1_57"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_1_57">Boost Release
106 1.57</a>
107 </h5>
108<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
109 <a href="https://github.com/boostorg/optional/pull/9" target="_top">Git pull #9</a>:
110 <span class="emphasis"><em>"Supply <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">string</span><span class="special">&gt;</span></code>
111 to fix C++03 compile error on <code class="computeroutput"><span class="identifier">logic_error</span><span class="special">(</span><span class="string">"..."</span><span class="special">)</span></code>"</em></span>.
112 </li></ul></div>
113<h5>
114<a name="boost_optional.reference.relnotes.h5"></a>
115 <span class="phrase"><a name="boost_optional.reference.relnotes.boost_release_1_56"></a></span><a class="link" href="relnotes.html#boost_optional.reference.relnotes.boost_release_1_56">Boost Release
116 1.56</a>
117 </h5>
118<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
119<li class="listitem">
120 Added support for rvalue references. Now <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</span></code> works with moveable but non-copyable
121 <code class="computeroutput"><span class="identifier">T</span></code>'s,
122 </li>
123<li class="listitem">
124 Improved <code class="computeroutput"><span class="identifier">swap</span></code> (now uses
125 move operations),
126 </li>
127<li class="listitem">
128 Added function <code class="computeroutput"><span class="identifier">emplace</span><span class="special">()</span></code>. This is the last of the requests from
129 <a href="https://svn.boost.org/trac/boost/ticket/1841" target="_top">Trac #1841</a>,
130 </li>
131<li class="listitem">
132 <code class="computeroutput"><span class="identifier">optional</span></code> is moveable,
133 including conditional <code class="computeroutput"><span class="keyword">noexcept</span></code>
134 specifications, which make it <code class="computeroutput"><span class="identifier">move_if_noexcept</span></code>-friendly,
135 </li>
136<li class="listitem">
137 Using explicit operator bool() on platforms that support it (<a href="https://svn.boost.org/trac/boost/ticket/4227" target="_top">Trac
138 #4227</a>) (breaking change),
139 </li>
140<li class="listitem">
141 Forward declaration of <code class="computeroutput"><span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">ostream</span><span class="special">&amp;,</span> <span class="identifier">optional</span>
142 <span class="keyword">const</span><span class="special">&amp;)</span></code>
143 to prevent inadvertent incorrect serialization of optional objects,
144 </li>
145<li class="listitem">
146 Removed deprecated function <code class="computeroutput"><span class="identifier">reset</span><span class="special">()</span></code> from examples (<a href="https://svn.boost.org/trac/boost/ticket/9005" target="_top">Trac
147 #9005</a>),
148 </li>
149<li class="listitem">
150 Equality comparison with <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none</span></code>
151 does not require that <code class="computeroutput"><span class="identifier">T</span></code>
152 be EqualityComparable,
153 </li>
154<li class="listitem">
155 Optional rvalue references are explicitly disallowed,
156 </li>
157<li class="listitem">
158 Binding temporaries to optional references is explicitly disallowed (breaking
159 change),
160 </li>
161<li class="listitem">
162 More ways to access the contained value, functions <code class="computeroutput"><span class="identifier">value</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">value_or</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">value_or_eval</span><span class="special">()</span></code>,
163 </li>
164<li class="listitem">
165 Updated and reorganized documentation, added tutorial and quick guide
166 sections.
167 </li>
168</ul></div>
169</div>
170<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
171<td align="left"></td>
172<td align="right"><div class="copyright-footer">Copyright &#169; 2003-2007 Fernando Luis Cacciola Carballal<br>Copyright &#169; 2014-2016 Andrzej Krzemie&#324;ski<p>
173 Distributed under the Boost Software License, Version 1.0. (See accompanying
174 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
175 </p>
176</div></td>
177</tr></table>
178<hr>
179<div class="spirit-nav">
180<a accesskey="p" href="dependencies_and_portability/optional_reference_binding.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../optional/reference.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="acknowledgements.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
181</div>
182</body>
183</html>