| 172 | const char* getTypeName2() const { return typeName2_; } |
| 173 | |
| 174 | void makePersistent() { |
| 175 | // Copy the Backtrace object |
| 176 | backtrace_ = new Backtrace(*backtrace_); |
| 177 | |
| 178 | // NOTE: We don't copy the type name. |
| 179 | // The GNU libstdc++ implementation of type_info::name() returns a value |
| 180 | // that will be valid for the lifetime of the program. (Although the C++ |
| 181 | // standard doesn't guarantee this will be true on all implementations.) |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Clean up memory allocated by makePersistent() |