// Debugging unordered_set/unordered_multiset implementation -*- C++ -*-
-// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
+// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
unordered_set&
operator=(unordered_set&& __x)
{
- // NB: DR 675.
- clear();
- swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ clear();
+ swap(__x);
+ }
return *this;
}