Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75958 - in sandbox/closure/boost: . closure/aux_/preprocessor/keyword closure/aux_/preprocessor/keyword/facility closure/aux_/preprocessor/variadic/variadic_macro_data detail functional/detail typeof utility
From: lorcaminiti_at_[hidden]
Date: 2011-12-15 04:01:07


Author: lcaminiti
Date: 2011-12-15 04:01:07 EST (Thu, 15 Dec 2011)
New Revision: 75958
URL: http://svn.boost.org/trac/boost/changeset/75958

Log:
Renaming to closure.
Added:
   sandbox/closure/boost/boost_config.hpp
      - copied unchanged from r75952, /sandbox/closure/boost/closure/aux_/config.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/auto.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/auto.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/const.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/const.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/default.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/default.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/facility/
      - copied from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/facility/
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/inline.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/inline.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/register.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/register.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/return.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/return.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/this.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/this.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/keyword/void.hpp
      - copied unchanged from r75951, /sandbox/closure/boost/detail/preprocessor/keyword/void.hpp
   sandbox/closure/boost/closure/aux_/preprocessor/variadic/variadic_macro_data/
      - copied from r75951, /sandbox/closure/boost/detail/preprocessor/variadic_macro_data/
   sandbox/closure/boost/functional/detail/overload_base.hpp
      - copied unchanged from r75952, /sandbox/closure/boost/closure/aux_/overload_base.hpp
   sandbox/closure/boost/scope_exit.hpp
      - copied unchanged from r75952, /sandbox/closure/boost/closure/aux_/scope_exit/scope_exit.hpp
   sandbox/closure/boost/typeof/
      - copied from r75952, /sandbox/closure/boost/closure/aux_/scope_exit/typeof/
Removed:
   sandbox/closure/boost/detail/
Text files modified:
   sandbox/closure/boost/utility/identity.hpp | 66 ----------------------------------------
   1 files changed, 0 insertions(+), 66 deletions(-)

Modified: sandbox/closure/boost/utility/identity.hpp
==============================================================================
--- sandbox/closure/boost/utility/identity.hpp (original)
+++ sandbox/closure/boost/utility/identity.hpp 2011-12-15 04:01:07 EST (Thu, 15 Dec 2011)
@@ -22,20 +22,6 @@
 #define BOOST_IDENTITY_HPP_
 
 #include <boost/type_traits/function_traits.hpp>
-#include <boost/type_traits/add_reference.hpp>
-
-/** @cond */
-namespace boost { namespace aux {
-
-// Identity for values (compilers should be able to optimize call overhead).
-template<typename T>
-inline typename boost::add_reference<T>::type identity_value(
- typename boost::add_reference<T>::type value) {
- return value;
-}
-
-}} // namespace boost::aux
-/** @endcond */
 
 /**
  * @brief This macro wraps the specified type expression within extra
@@ -100,57 +86,5 @@
     /* must NOT prefix this with `::` to work with parenthesized syntax */ \
     boost::function_traits< void parenthesized_type >::arg1_type
 
-/**
- * @brief This macro wraps the specified value expression within extra
- * parenthesis so the value can be passed as a single macro parameter even if
- * it contains commas (not already wrapped within round parenthesis).
- *
- * This macro expands to an expression that can be passed as a single macro
- * parameter even if it contains commas and that evaluates to the specified
- * value at run-time (see the @RefSect2{Advanced_Topics, Advanced Topics}
- * section).
- *
- * For example <c>BOOST_IDENTITY_VALUE((key_sizeof<int, double>::value))</c>
- * can be passed as a single macro parameter when instead
- * <c>key_sizeof<int, double>::value</c> cannot (because
- * <c>key_sizeof<int, double>::value</c> contains a comma not wrapped by round
- * parenthesis so it will be interpreted as two separate macro parameters by
- * the preprocessor).
- *
- * In many cases it might be possible to use alternatives to this macro that
- * will make the code more readable.
- * For example, if the expression type is know (and contains no commas) the
- * type constructor can be used to wrap the expression command within
- * parenthesis <c>size_type(key_sizeof<int, double>::value)</c>.
- *
- * @Params
- * @Param{parenthesize_value,
- * The value expression to be passed as macro parameter wrapped by a single
- * set of round parenthesis <c>(...)</c>.
- * This value expression can contain an arbitrary number of commas.
- * }
- * @EndParams
- *
- * @Note This macro works on C++03 compilers (it does not require variadic
- * macros). This macro expands to code equivalent to
- * <c>boost::aux::identity_value parenthesized_value</c> where:
- * @code
- * namespace boost { namespace aux {
- *
- * template<typename T>
- * inline typename boost::add_reference<T>::type identity_value(
- * typename boost::add_reference<T>::type value) {
- * return value;
- * }
- *
- * }} // namespace boost::aux
- * @endcode
- *
- * @See @RefSect2{Advanced_Topics, Advanced Topics} section.
- */
-#define BOOST_IDENTITY_VALUE(parenthesized_value) \
- /* must NOT prefix this with `::` to work with parenthesized syntax */ \
- boost::aux::identity_value parenthesized_value
-
 #endif // #include guard
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk