<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>How the library works</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
-<link rel="up" href="../move.html" title="Chapter 16. Boost.Move">
+<link rel="up" href="../move.html" title="Chapter 19. Boost.Move">
<link rel="prev" href="emulation_limitations.html" title="Emulation limitations">
<link rel="next" href="thanks_to.html" title="Thanks and credits">
</head>
and clean code for C++0x move semantics, without modifying any resolution overload.
For C++03 compilers when overload resolution is performed these are the bindings:
</p>
-<div class="itemizedlist"><ul class="itemizedlist" type="disc">
+<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
a) non-const rvalues (e.g.: temporaries), bind to <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">rv</span><span class="special"><</span> <span class="identifier">TYPE</span> <span class="special">>&</span></code>
</li>
The library does not define the equivalent of <code class="computeroutput"><a class="link" href="../BOOST_COPY_ASSIGN_REF.html" title="Macro BOOST_COPY_ASSIGN_REF">BOOST_COPY_ASSIGN_REF</a></code>
for copy construction (say, <code class="computeroutput"><span class="identifier">BOOST_COPY_CTOR_REF</span></code>)
because nearly all modern compilers implement RVO and this is much more efficient
- than any move emulation. <code class="computeroutput"><a class="link" href="../boost/move_id1108876.html" title="Function template move">move</a></code>
+ than any move emulation. <code class="computeroutput"><a class="link" href="../boost/move_idp105408384.html" title="Function template move">move</a></code>
just casts <code class="computeroutput"><span class="identifier">TYPE</span> <span class="special">&</span></code>
into <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">rv</span><span class="special"><</span><span class="identifier">TYPE</span><span class="special">></span> <span class="special">&</span></code>.
</p>
</p>
<p>
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">move</span><span class="special">/</span><span class="identifier">move</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">move</span><span class="special">/</span><span class="identifier">core</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="keyword">class</span> <span class="identifier">sink_tester</span>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
-<td align="right"><div class="copyright-footer">Copyright © 2008-2010 Ion Gaztanaga<p>
+<td align="right"><div class="copyright-footer">Copyright © 2008-2014 Ion Gaztanaga<p>
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" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>