The second assert in invariant fails intermittently and that too only on the
aix machine. The issue is not reproducible and I am not able to conclude
anything from the core file that we got from client side.
I am using 1.2 version of Xalan. Then newer versions of Xalan implements
invariant differently.
1.2 version of invariants:
void invariants() const
{
#if !defined(NDEBUG)
assert((m_data.size() == 0 && m_size == 0) || m_size ==
m_data.size() -
1);
assert(m_data.size() == 0 || m_data.back() == 0);
#endif
}
1.10 version of invariants:
void invariants() const
{
#if !defined(NDEBUG)
assert((m_data.empty() == true && m_size == 0) || m_size ==
m_data.size()
- 1);
assert(m_data.empty() == true || m_data.back() == 0);
#endif
}
Does the new implementation fix anything?
Any help is greatly appreciated.
Regards,
Jasmine Shaikh
--
View this message in context:
http://old.nabble.com/assert-in-Invariants-fails-for-aix-tp29612132p29612132.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.