You can now manually disable move semantics.

This may be useful in MSVC to work around a bug described in Trac #10399
This commit is contained in:
Andrzej Krzemienski
2015-01-21 15:03:17 +01:00
parent 726b227aa9
commit f229257f30
6 changed files with 90 additions and 38 deletions

View File

@ -16,6 +16,7 @@
* `boost::none_t` is no longer convertible from literal `0`. This avoids a bug where `optional<rational<int>> oi = 0;` would initialize an optional object with no contained value.
* Improved the trick that prevents streaming out `optional` without header `optional_io.hpp` by using safe-bool idiom. This addresses [@https://svn.boost.org/trac/boost/ticket/10825 Trac #10825]
* IOStream operators are now mentioned in documentation.
* Added a way to manually disable move semantics: just define macro `BOOST_OPTIONAL_CONFIG_NO_RVALUE_REFERENCES`. This can be used to work around [@https://svn.boost.org/trac/boost/ticket/10399 Trac #10399]
[heading Boost Release 1.57]

View File

@ -47,6 +47,11 @@
<li class="listitem">
IOStream operators are now mentioned in documentation.
</li>
<li class="listitem">
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>.
This can be used to work around <a href="https://svn.boost.org/trac/boost/ticket/10399" target="_top">Trac
#10399</a>
</li>
</ul></div>
<h4>
<a name="boost_optional.relnotes.h1"></a>

View File

@ -138,7 +138,7 @@
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"><p><small>Last revised: January 20, 2015 at 23:06:39 GMT</small></p></td>
<td align="left"><p><small>Last revised: January 21, 2015 at 13:59:23 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>