diff --git a/doc/tutorial/doc/exception_translation.html b/doc/tutorial/doc/exception_translation.html index 9ec6bc86..aaab2ec7 100644 --- a/doc/tutorial/doc/exception_translation.html +++ b/doc/tutorial/doc/exception_translation.html @@ -33,16 +33,16 @@ then gives up:
Users may provide custom translation. Here's an example:
-
- struct PodBayDoorException;
- void translator(PodBayDoorException& x) {
+
+ struct PodBayDoorException;
+ void translator(PodBayDoorException const& x) {
PyErr_SetString(PyExc_UserWarning, "I'm sorry Dave...");
- }
- BOOST_PYTHON_MODULE(kubrick) {
+ }
+ BOOST_PYTHON_MODULE(kubrick) {
register_exception_translator<
PodBayDoorException>(translator);
- ...
-
+ ...
+