From c598550d50b23f80b3481e831d5a3261b0800e79 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 29 Jul 2004 01:50:40 -0400 Subject: [PATCH] call c_str() --- error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } };