← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~paul-lucas/zorba/bug-980463 into lp:zorba

 

Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/bug-980463 into lp:zorba.

Requested reviews:
  Paul J. Lucas (paul-lucas)
Related bugs:
  Bug #980463 in Zorba: "Using type_info::name() wrong"
  https://bugs.launchpad.net/zorba/+bug/980463

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/bug-980463/+merge/101854

Now comparing name() to name().
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-980463/+merge/101854
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/zorbaserialization/class_serializer.h'
--- src/zorbaserialization/class_serializer.h	2012-04-10 20:59:34 +0000
+++ src/zorbaserialization/class_serializer.h	2012-04-13 03:18:19 +0000
@@ -380,9 +380,9 @@
 ********************************************************************************/
 #ifndef NDEBUG
 #define CHECK_CLASS_NAME(class_name)\
-if (ar.is_serializing_out() && !ar.is_serialize_base_class())   \
-{                                                               \
-  assert(strstr(typeid(*this).name(), #class_name));            \
+if (ar.is_serializing_out() && !ar.is_serialize_base_class())             \
+{                                                                         \
+  assert(::strcmp(typeid(*this).name(), typeid(class_name).name()) == 0); \
 }
 #else
 #define CHECK_CLASS_NAME(class_name)


Follow ups