1<?xml version="1.0" encoding="utf-8" ?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 4<!-- Copyright Aleksey Gurtovoy 2006. Distributed under the Boost --> 5<!-- Software License, Version 1.0. (See accompanying --> 6<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> 7<head> 8<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9<meta name="generator" content="Docutils 0.3.6: http://docutils.sourceforge.net/" /> 10<title>THE BOOST MPL LIBRARY: Renaming/Cleanup</title> 11<link rel="stylesheet" href="../style.css" type="text/css" /> 12</head> 13<body class="docframe"> 14<table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./numeric-metafunction.html" class="navigation-link">Prev</a> <a href="./miscellaneous.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./numeric-metafunction.html" class="navigation-link">Back</a> <a href="./miscellaneous.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./changes-in-boost-1-32-0.html" class="navigation-link">Up</a> <a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td> 15<td class="header-group page-location"><a href="../index.html" class="navigation-link">Front Page</a> / <a href="./changelog-history.html" class="navigation-link">Changelog & History</a> / <a href="./changes-in-boost-1-32-0.html" class="navigation-link">Changes in Boost 1.32.0 Release</a> / <a href="./renaming-cleanup.html" class="navigation-link">Renaming/Cleanup</a></td> 16</tr></table><div class="header-separator"></div> 17<div class="section" id="renaming-cleanup"> 18<h1><a class="toc-backref" href="./changes-in-boost-1-32-0.html#id68" name="renaming-cleanup">Renaming/Cleanup</a></h1> 19<ol class="arabic"> 20<li><p class="first">The <tt class="literal"><span class="pre">apply_if</span></tt> metafunction has been renamed to <tt class="literal"><span class="pre">eval_if</span></tt>.</p> 21</li> 22<li><p class="first">All <tt class="literal"><span class="pre">_backward</span></tt> algorithm counterparts have been renamed to use <tt class="literal"><span class="pre">reverse_</span></tt> 23prefix; e.g. <tt class="literal"><span class="pre">fold_backward</span></tt> became <tt class="literal"><span class="pre">reverse_fold</span></tt>.</p> 24</li> 25<li><p class="first">The <tt class="literal"><span class="pre"><boost/mpl/aux_/has_xxx.hpp></span></tt> header has been made public and became 26<tt class="literal"><span class="pre"><boost/mpl/has_xxx.hpp></span></tt>; correspondingly, the <tt class="literal"><span class="pre">BOOST_MPL_NO_AUX_HAS_XXX</span></tt> 27macro was renamed to <tt class="literal"><span class="pre">BOOST_MPL_CFG_NO_HAS_XXX</span></tt>.</p> 28</li> 29<li><p class="first"><tt class="literal"><span class="pre"><boost/mpl/assert_is_same.hpp></span></tt> header has been replaced by a more 30general <tt class="literal"><span class="pre"><mpl/assert.hpp></span></tt>; the new asserts provide a significantly 31higher-quality diagnostics. See the table below for new equivalents of 32the old macros:</p> 33<table border="1" class="table"> 34<colgroup> 35<col width="45%" /> 36<col width="55%" /> 37</colgroup> 38<thead valign="bottom"> 39<tr><th><p class="first last">Before</p> 40</th> 41<th><p class="first last">Now</p> 42</th> 43</tr> 44</thead> 45<tbody valign="top"> 46<tr><td><p class="first last"><tt class="literal"><span class="pre">BOOST_MPL_ASSERT_IS_SAME(t1,</span> <span class="pre">t2)</span></tt></p> 47</td> 48<td><p class="first last"><tt class="literal"><span class="pre">BOOST_MPL_ASSERT((</span> <span class="pre">boost::is_same<t1,t2></span> <span class="pre">))</span></tt></p> 49</td> 50</tr> 51<tr><td><p class="first last"><tt class="literal"><span class="pre">BOOST_MPL_ASSERT_IS_NOT_SAME(t1,</span> <span class="pre">t2)</span></tt></p> 52</td> 53<td><p class="first last"><tt class="literal"><span class="pre">BOOST_MPL_ASSERT_NOT((</span> <span class="pre">boost::is_same<t1,t2></span> <span class="pre">))</span></tt></p> 54</td> 55</tr> 56</tbody> 57</table> 58<p>The "Macros/Asserts" section of the <a class="reference" href="./reference-manual.html">reference manual</a> provides a 59complete formal specification of the new macros' semantics.</p> 60</li> 61<li><p class="first">All configuration macros have been renamed to include the <tt class="literal"><span class="pre">CFG</span></tt> prefix; in 62particular, <tt class="literal"><span class="pre">BOOST_MPL_NO_FULL_LAMBDA_SUPPORT</span></tt> has become 63<tt class="literal"><span class="pre">BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT</span></tt>.</p> 64</li> 65<li><p class="first">The following public headers/components have been renamed or removed as 66obsolete:</p> 67<pre class="literal-block"> 68iterator_tag.hpp (renamed to iterator_tags.hpp) 69project1st.hpp 70project2nd.hpp 71select1st.hpp 72select2nd.hpp 73</pre> 74</li> 75</ol> 76</div> 77 78<div class="footer-separator"></div> 79<table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./numeric-metafunction.html" class="navigation-link">Prev</a> <a href="./miscellaneous.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./numeric-metafunction.html" class="navigation-link">Back</a> <a href="./miscellaneous.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./changes-in-boost-1-32-0.html" class="navigation-link">Up</a> <a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td> 80</tr></table></body> 81</html> 82