From 9a1a938ef24fae3c36b48e0cb2f7fc2d9aff6dab Mon Sep 17 00:00:00 2001 From: Fredrik Blomqvist Date: Thu, 16 Sep 2004 21:15:32 +0000 Subject: [PATCH] typo. made the what() method in the code-snippet const declared. [SVN r25161] --- error_handling.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error_handling.html b/error_handling.html index 65879ad..1436404 100644 --- a/error_handling.html +++ b/error_handling.html @@ -75,8 +75,8 @@
 #include <iostream>
-struct my_exc1 : std::exception { char const* what() throw(); };
-struct my_exc2 : std::exception { char const* what() throw(); };
+struct my_exc1 : std::exception { char const* what() const throw(); };
+struct my_exc2 : std::exception { char const* what() const throw(); };
 struct your_exc3 : my_exc1, my_exc2 {};
 
 int main()