Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60567 - sandbox/statistics/detail/assign/boost/assign/auto_size/chain
From: erwann.rogard_at_[hidden]
Date: 2010-03-13 21:31:09


Author: e_r
Date: 2010-03-13 21:31:09 EST (Sat, 13 Mar 2010)
New Revision: 60567
URL: http://svn.boost.org/trac/boost/changeset/60567

Log:
m
Removed:
   sandbox/statistics/detail/assign/boost/assign/auto_size/chain/reference_wrapper_traits.hpp

Deleted: sandbox/statistics/detail/assign/boost/assign/auto_size/chain/reference_wrapper_traits.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/chain/reference_wrapper_traits.hpp 2010-03-13 21:31:09 EST (Sat, 13 Mar 2010)
+++ (empty file)
@@ -1,80 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::detail::ref_wrapper_traits.hpp //
-// //
-// (C) Copyright 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_DETAIL_REFERENCE_WRAPPER_TRAITS_ER_2010_HPP
-#define BOOST_ASSIGN_DETAIL_REFERENCE_WRAPPER_TRAITS_ER_2010_HPP
-#include <boost/mpl/identity.hpp>
-#include <boost/mpl/assert.hpp>
-#include <boost/type_traits.hpp>
-
-namespace boost{
-namespace assign{
-namespace detail{
-namespace ref_wrapper_traits{
-
- namespace tag{
- struct default_{};
- }
-
- // specialize for each T
- template<typename T>
- struct tag_of{};
-
- template<typename T,template<typename> class M>
- struct helper : M<typename ref_wrapper_traits::tag_of<T>::type>
- ::template apply<T>{};
-
- namespace meta{
- // specialize on Tag
- template<typename Tag>
- struct value_of{
- // template<typename T> struct apply;
- };
-
- namespace impl{
- template<typename T> struct value_of{};
- template<typename T,template<typename> class W>
- struct value_of<W<T> >{ typedef T type; };
- }
-
- template<>
- struct value_of<ref_wrapper_traits::tag::default_>
- {
- template<typename T>
- struct apply : impl::value_of<T>{};
- };
- }
-
- template<typename T>
- struct value_of
- : ref_wrapper_traits::helper<T,meta::value_of>{};
-
- namespace meta{
- template<typename Tag>
- struct convertible_to{
- template<typename T> struct apply{};
- };
- template<>
- template<typename T>
- struct convertible_to<tag::default_>::apply<T>
- : boost::add_reference<
- typename ref_wrapper_traits::value_of<T>::type
- >
- {};
- }
-
- template<typename T>
- struct convertible_to
- : ref_wrapper_traits::helper<T,meta::convertible_to>{};
-
-}// ref_wrapper_traits
-}// detail
-}// assign
-}// boost
-
-#endif


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