
14 Nov
2006
14 Nov
'06
8:03 a.m.
I found a subtle bug regarding exception::what(). I remember fixing this same bug once when it was pointed to me after the preliminary submission of Boost Exception few months ago. Aparently the fix got lost somehow! The what() function uses lazy initialization to cache the string it returns. The object that caches the returned value was not cleared (as it should be) if the exception object is later modified. It now works correctly.