summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-07-29 01:50:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-07-29 01:50:40 -0400
commitc598550d50b23f80b3481e831d5a3261b0800e79 (patch)
tree47c2da07452be84fe4b9dabb8a75e349c1f38b50
parent6215627935ddbfbd9a325f98e197511d2b7235b1 (diff)
downloadledger-c598550d50b23f80b3481e831d5a3261b0800e79.tar.gz
ledger-c598550d50b23f80b3481e831d5a3261b0800e79.tar.bz2
ledger-c598550d50b23f80b3481e831d5a3261b0800e79.zip
call c_str()
-rw-r--r--error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.h b/error.h
index 6b5202a4..e6a4984c 100644
--- a/error.h
+++ b/error.h
@@ -14,7 +14,7 @@ class error : public std::exception
virtual ~error() throw() {}
virtual const char* what() const throw() {
- return reason;
+ return reason.c_str();
}
};