Browse Source

typo. made the what() method in the code-snippet const declared.

[SVN r25161]
Fredrik Blomqvist 21 years ago
parent
commit
79bc62499b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      more/error_handling.html

+ 2 - 2
more/error_handling.html

@@ -75,8 +75,8 @@
 
 <pre>
 #include &lt;iostream&gt;
-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()

粤ICP备19079148号