Added runtime check for serializing RichValue with missing Register

git-svn-id: svn://ultimatepp.org/upp/trunk@1119 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-05-02 15:45:07 +00:00
parent 5d450cfd5d
commit 729a359ea7

View file

@ -165,6 +165,7 @@ void Value::Serialize(Stream& s) {
}
else {
type = GetType();
ASSERT_(!type || Typemap().Find(type) >= 0, "Missing RichValueType<" + AsString(type) + ">::Register");
s / type;
ptr->Serialize(s);
}