Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 //-----------------------------------------------------------------------------
2 // boost variant/detail/backup_holder.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
9 // Distributed under the Boost Software License, Version 1.0. (See
10 // accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #ifndef BOOST_VARIANT_DETAIL_BACKUP_HOLDER_HPP
14 #define BOOST_VARIANT_DETAIL_BACKUP_HOLDER_HPP
16 #include "boost/assert.hpp"
19 namespace detail { namespace variant {
24 private: // representation
35 explicit backup_holder(T* backup)
40 backup_holder(const backup_holder&);
44 backup_holder& operator=(const backup_holder& rhs)
50 backup_holder& operator=(const T& rhs)
56 void swap(backup_holder& rhs)
59 rhs.backup_ = this->backup_;
78 backup_holder<T>::backup_holder(const backup_holder&)
81 // not intended for copy, but do not want to prohibit syntactically
86 void swap(backup_holder<T>& lhs, backup_holder<T>& rhs)
91 }} // namespace detail::variant
94 #endif // BOOST_VARIANT_DETAIL_BACKUP_HOLDER_HPP