Skip to content

Commit 957ad2b

Browse files
committed
Adjust to make the tutorial work
[SVN r22568]
1 parent 7187c61 commit 957ad2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/v2/exception_translator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h3><code><a name="register_exception_translator-spec">register_exception_transl
6868

6969
<pre>
7070
<a name="register_exception_translator-spec">template&lt;class ExceptionType, class Translate&gt;</a>
71-
void register_exception_translator(Translate const&amp; translate);
71+
void register_exception_translator(Translate translate);
7272
</pre>
7373

7474
<dl class="function-semantics">

include/boost/python/exception_translator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace boost { namespace python {
1717

1818
template <class ExceptionType, class Translate>
19-
void register_exception_translator(Translate const& translate, boost::type<ExceptionType>* = 0)
19+
void register_exception_translator(Translate translate, boost::type<ExceptionType>* = 0)
2020
{
2121
detail::register_exception_handler(
2222
bind<bool>(detail::translate_exception<ExceptionType,Translate>(), _1, _2, translate)

0 commit comments

Comments
 (0)