geometry::index: commented out explicit copy ctor and assignment of ptr_pair.

[SVN r83879]
This commit is contained in:
Adam Wulkiewicz
2013-04-13 18:28:41 +00:00
parent e03e890d22
commit 6bf7e0dbe0

View File

@@ -24,8 +24,8 @@ public:
typedef First first_type;
typedef Pointer second_type;
ptr_pair(First const& f, Pointer s) : first(f), second(s) {}
ptr_pair(ptr_pair const& p) : first(p.first), second(p.second) {}
ptr_pair & operator=(ptr_pair const& p) { first = p.first; second = p.second; return *this; }
//ptr_pair(ptr_pair const& p) : first(p.first), second(p.second) {}
//ptr_pair & operator=(ptr_pair const& p) { first = p.first; second = p.second; return *this; }
first_type first;
second_type second;
@@ -38,6 +38,8 @@ make_ptr_pair(First const& f, Pointer s)
return ptr_pair<First, Pointer>(f, s);
}
// TODO: It this will be used, rename it to unique_ptr_pair and possibly use unique_ptr.
template <typename First, typename Pointer>
class exclusive_ptr_pair
{