Bug 1142376 - Allow copying of mozilla::Pair objects. r=waldo

This commit is contained in:
Seth Fowler 2015-03-12 17:44:30 -07:00
parent fcab02dc69
commit b92fe7e589

View File

@ -164,6 +164,8 @@ public:
: Base(Move(aOther.first()), Move(aOther.second()))
{ }
Pair(const Pair& aOther) = default;
/** The A instance. */
using Base::first;
/** The B instance. */
@ -171,9 +173,6 @@ public:
/** Swap this pair with another pair. */
void swap(Pair& aOther) { Base::swap(aOther); }
private:
Pair(const Pair&) = delete;
};
template<typename A, class B>