aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-27 17:42:39 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-27 17:42:39 +0000
commitbaa5258baf86b761919a3b9b16859dd04a0703a2 (patch)
tree3f017a41f33c5dd25d907f29b90d4f533db3faf4
parent1bea8725f294a4b581bdba82902562e262b46eb6 (diff)
downloadpaludis-baa5258baf86b761919a3b9b16859dd04a0703a2.tar.gz
paludis-baa5258baf86b761919a3b9b16859dd04a0703a2.tar.xz
Use typeid.name() instead of std::exception::what(), which was changed in gcc-4.2.0.
-rw-r--r--paludis/util/exception.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/exception.cc b/paludis/util/exception.cc
index bbf04c4..00e69f0 100644
--- a/paludis/util/exception.cc
+++ b/paludis/util/exception.cc
@@ -156,7 +156,7 @@ Exception::what() const throw ()
{
int status(0);
char * const name(abi::__cxa_demangle(
- ("_Z" + stringify(std::exception::what())).c_str(), 0, 0, &status));
+ (std::string("_Z") + typeid(*this).name()).c_str(), 0, 0, &status));
if (0 == status)
{