Using type_info::name() wrong
Bug #980463 reported by
Paul J. Lucas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Paul J. Lucas |
Bug Description
In class_serializer.h, the definition of the CHECK_CLASS_NAME macro:
#define CHECK_CLASS_
if (ar.is_
{ \
assert(
}
The string returned by type_info::name() is implementation-
However, you can legitimately compare two name() strings for equality. The above should be rewritten as:
assert(
Related branches
lp:~paul-lucas/zorba/bug-980463
- Matthias Brantner: Approve
- Paul J. Lucas: Approve
-
Diff: 33 lines (+3/-7)1 file modifiedsrc/zorbaserialization/class_serializer.h (+3/-7)
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.