]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/doc/html/boost_optional/relnotes.html
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / optional / doc / html / boost_optional / relnotes.html
1 <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="../index.html" title="Boost.Optional">
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="../index.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><h2 class="title" style="clear: both">
27 <a name="boost_optional.relnotes"></a><a class="link" href="relnotes.html" title="Release Notes">Release Notes</a>
28 </h2></div></div></div>
29 <h4>
30 <a name="boost_optional.relnotes.h0"></a>
31 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_63"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_63">Boost
32 Release 1.63</a>
33 </h4>
34 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
35 <li class="listitem">
36 Added two new in-place constructors. They work similarly to <code class="computeroutput"><span class="identifier">emplace</span><span class="special">()</span></code>
37 functions: they initialize the contained value by perfect-forwarding the
38 obtained arguments. One constructor always initializes the contained value,
39 the other based on a boolean condition.
40 </li>
41 <li class="listitem">
42 Fixed <a href="https://svn.boost.org/trac/boost/ticket/12203" target="_top">Trac #12203</a>.
43 </li>
44 </ul></div>
45 <h4>
46 <a name="boost_optional.relnotes.h1"></a>
47 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_62"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_62">Boost
48 Release 1.62</a>
49 </h4>
50 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
51 Fixed <a href="https://svn.boost.org/trac/boost/ticket/12179" target="_top">Trac #12179</a>.
52 </li></ul></div>
53 <h4>
54 <a name="boost_optional.relnotes.h2"></a>
55 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_61"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_61">Boost
56 Release 1.61</a>
57 </h4>
58 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
59 <li class="listitem">
60 Now <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">optional</span></code> is specialized for reference
61 parameters. This addresses a couple of issues:
62 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
63 <li class="listitem">
64 the <code class="computeroutput"><span class="keyword">sizeof</span></code> of optional
65 reference is that of a pointer,
66 </li>
67 <li class="listitem">
68 some bugs connected to copying optional references are gone,
69 </li>
70 <li class="listitem">
71 all run-time bugs caused by incorrect reference binding on some compilers
72 are now turned into compile-time errors,
73 </li>
74 <li class="listitem">
75 you can swap optional references: it is like swapping pointers: shalow,
76 underlying objects are not affected,
77 </li>
78 <li class="listitem">
79 optional references to abstract types work.
80 </li>
81 </ul></div>
82 </li>
83 <li class="listitem">
84 Documented nested typedefs (<a href="https://svn.boost.org/trac/boost/ticket/5193" target="_top">Trac
85 #5193</a>).
86 </li>
87 <li class="listitem">
88 Made the perfect-forwarding constructor SFINAE-friendly, which fixes <a href="https://svn.boost.org/trac/boost/ticket/12002" target="_top">Trac #12002</a>.
89 However, this only works in the newer platforms that correctly implement
90 C++11 <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">type_traits</span><span class="special">&gt;</span></code>.
91 </li>
92 <li class="listitem">
93 Fixed <a href="https://svn.boost.org/trac/boost/ticket/10445" target="_top">Trac #10445</a>.
94 </li>
95 </ul></div>
96 <h4>
97 <a name="boost_optional.relnotes.h3"></a>
98 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_60"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_60">Boost
99 Release 1.60</a>
100 </h4>
101 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
102 Changed the implementation of <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none</span></code>
103 again. Now it is a const object with internal linkage (as any other tag).
104 This fixes <a href="https://svn.boost.org/trac/boost/ticket/11203" target="_top">Trac
105 #11203</a>.
106 </li></ul></div>
107 <h4>
108 <a name="boost_optional.relnotes.h4"></a>
109 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_59"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_59">Boost
110 Release 1.59</a>
111 </h4>
112 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
113 <li class="listitem">
114 For C++03 compilers, added 0-argument overload for member function <code class="computeroutput"><span class="identifier">emplace</span><span class="special">()</span></code>,
115 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>.
116 </li>
117 <li class="listitem">
118 Fixed <a href="https://svn.boost.org/trac/boost/ticket/11241" target="_top">Trac #11241</a>.
119 </li>
120 </ul></div>
121 <h4>
122 <a name="boost_optional.relnotes.h5"></a>
123 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_58"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_58">Boost
124 Release 1.58</a>
125 </h4>
126 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
127 <li class="listitem">
128 <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none_t</span></code> is no longer convertible from
129 literal <code class="computeroutput"><span class="number">0</span></code>. This avoids a bug
130 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> <span class="identifier">oi</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span></code> would
131 initialize an optional object with no contained value.
132 </li>
133 <li class="listitem">
134 Improved the trick that prevents streaming out <code class="computeroutput"><span class="identifier">optional</span></code>
135 without header <code class="computeroutput"><span class="identifier">optional_io</span><span class="special">.</span><span class="identifier">hpp</span></code>
136 by using safe-bool idiom. This addresses <a href="https://svn.boost.org/trac/boost/ticket/10825" target="_top">Trac
137 #10825</a>.
138 </li>
139 <li class="listitem">
140 IOStream operators are now mentioned in documentation.
141 </li>
142 <li class="listitem">
143 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>.
144 This can be used to work around <a href="https://svn.boost.org/trac/boost/ticket/10399" target="_top">Trac
145 #10399</a>.
146 </li>
147 <li class="listitem">
148 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>
149 is not assignable or convertible to <code class="computeroutput"><span class="identifier">T</span></code>
150 (<a href="https://svn.boost.org/trac/boost/ticket/11087" target="_top">Trac #11087</a>).
151 </li>
152 <li class="listitem">
153 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
154 #10839</a>).
155 </li>
156 </ul></div>
157 <h4>
158 <a name="boost_optional.relnotes.h6"></a>
159 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_57"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_57">Boost
160 Release 1.57</a>
161 </h4>
162 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
163 <a href="https://github.com/boostorg/optional/pull/9" target="_top">Git pull #9</a>:
164 <span class="emphasis"><em>"Supply <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">string</span><span class="special">&gt;</span></code>
165 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>.
166 </li></ul></div>
167 <h4>
168 <a name="boost_optional.relnotes.h7"></a>
169 <span class="phrase"><a name="boost_optional.relnotes.boost_release_1_56"></a></span><a class="link" href="relnotes.html#boost_optional.relnotes.boost_release_1_56">Boost
170 Release 1.56</a>
171 </h4>
172 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
173 <li class="listitem">
174 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
175 <code class="computeroutput"><span class="identifier">T</span></code>'s,
176 </li>
177 <li class="listitem">
178 Improved <code class="computeroutput"><span class="identifier">swap</span></code> (now uses
179 move operations),
180 </li>
181 <li class="listitem">
182 Added function <code class="computeroutput"><span class="identifier">emplace</span><span class="special">()</span></code>. This is the last of the requests from
183 <a href="https://svn.boost.org/trac/boost/ticket/1841" target="_top">Trac #1841</a>,
184 </li>
185 <li class="listitem">
186 <code class="computeroutput"><span class="identifier">optional</span></code> is moveable, including
187 conditional <code class="computeroutput"><span class="keyword">noexcept</span></code> specifications,
188 which make it <code class="computeroutput"><span class="identifier">move_if_noexcept</span></code>-friendly,
189 </li>
190 <li class="listitem">
191 Using explicit operator bool() on platforms that support it (<a href="https://svn.boost.org/trac/boost/ticket/4227" target="_top">Trac
192 #4227</a>) (breaking change),
193 </li>
194 <li class="listitem">
195 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>
196 <span class="keyword">const</span><span class="special">&amp;)</span></code>
197 to prevent inadvertent incorrect serialization of optional objects,
198 </li>
199 <li class="listitem">
200 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
201 #9005</a>),
202 </li>
203 <li class="listitem">
204 Equality comparison with <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">none</span></code>
205 does not require that <code class="computeroutput"><span class="identifier">T</span></code>
206 be EqualityComparable,
207 </li>
208 <li class="listitem">
209 Optional rvalue references are explicitly disallowed,
210 </li>
211 <li class="listitem">
212 Binding temporaries to optional references is explicitly disallowed (breaking
213 change),
214 </li>
215 <li class="listitem">
216 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>,
217 </li>
218 <li class="listitem">
219 Updated and reorganized documentation, added tutorial and quick guide sections.
220 </li>
221 </ul></div>
222 </div>
223 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
224 <td align="left"></td>
225 <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>
226 Distributed under the Boost Software License, Version 1.0. (See accompanying
227 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>)
228 </p>
229 </div></td>
230 </tr></table>
231 <hr>
232 <div class="spirit-nav">
233 <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="../index.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>
234 </div>
235 </body>
236 </html>