[Mobies-commit] [commit] r3750 - UDM/trunk/include
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Mon May 16 14:38:25 CDT 2011
Author: ksmyth
Date: Mon May 16 14:38:24 2011
New Revision: 3750
Log:
AssocAttr += and -= requires non-null args
Modified:
UDM/trunk/include/UdmBase.h
Modified: UDM/trunk/include/UdmBase.h
==============================================================================
--- UDM/trunk/include/UdmBase.h Mon May 16 14:37:07 2011 (r3749)
+++ UDM/trunk/include/UdmBase.h Mon May 16 14:38:24 2011 (r3750)
@@ -1990,11 +1990,13 @@
}
const set<CLASS,Pred> operator +=(const CLASS &a) {
+ UDM_ASSERT(a);
set<CLASS,Pred> xx(*this);
xx.insert(a);
return *this = xx;
}
const set<CLASS,Pred> operator -=(const CLASS &a) {
+ UDM_ASSERT(a);
set<CLASS,Pred> xx(*this);
xx.erase(a);
return *this = xx;
More information about the Mobies-commit
mailing list