Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59641 - sandbox/statistics/detail/assign/boost/assign/detail
From: erwann.rogard_at_[hidden]
Date: 2010-02-11 14:59:09


Author: e_r
Date: 2010-02-11 14:59:09 EST (Thu, 11 Feb 2010)
New Revision: 59641
URL: http://svn.boost.org/trac/boost/changeset/59641

Log:
m
Added:
   sandbox/statistics/detail/assign/boost/assign/detail/assign_refence_copy.hpp
      - copied unchanged from r59640, /sandbox/statistics/detail/assign/boost/assign/detail/assign_value.hpp
Removed:
   sandbox/statistics/detail/assign/boost/assign/detail/assign_value.hpp

Deleted: sandbox/statistics/detail/assign/boost/assign/detail/assign_value.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/detail/assign_value.hpp 2010-02-11 14:59:09 EST (Thu, 11 Feb 2010)
+++ (empty file)
@@ -1,63 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::detail::assign_reference_copy.hpp //
-// //
-// (C) Copyright 2010 M.P.G //
-// 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_ASSIGN_REFERENCE_COPY_MPG_2010_HPP
-#define BOOST_ASSIGN_DETAIL_ASSIGN_REFERENCE_COPY_MPG_2010_HPP
-
-namespace boost{
-namespace assign_detail{
-
- // This is a reference wrapper whose assignment operator copies the value of
- // the rhs to the object pointed to.
- //
- // This is in contrast to assign_reference whose operator= rebinds the
- // address of the internal pointer. To that effect,here, call rebind()
- template< class T >
- struct assign_reference_copy
- {
- assign_reference_copy()
- { /* intentionally empty */ }
-
- assign_reference_copy( T& r ) : ref_(&r)
- { }
-
- void operator=( const T& r )
- {
- *ref_ = r;
- }
-
- operator T&() const
- {
- return *ref_;
- }
-
- void swap( assign_reference_copy& r )
- {
- std::swap( *ref_, *r.ref_ );
- }
-
- T& get_ref() const
- {
- return *ref_;
- }
-
- void rebind( T & r )
- {
- ref_ = &r;
- }
-
- private:
- T* ref_;
-
- };
-
-}// assign_detail
-}// 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