Skip to content

Commit 17faf45

Browse files
author
Jonathan Brandmeyer
committed
Export the client-provided docstrings for init<optional<> > and
_FUNCTION_OVERLOADS() for only the last overload. [SVN r27415]
1 parent 53c335f commit 17faf45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/boost/python/detail/defaults_def.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace detail
168168
char const* doc)
169169
{
170170
// define the NTH stub function of stubs
171-
define_stub_function<N>::define(name, stubs, kw, policies, name_space, doc);
171+
define_stub_function<N>::define(name, stubs, kw, policies, name_space, 0);
172172

173173
if (kw.second > kw.first)
174174
--kw.second;

include/boost/python/init.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ namespace detail
363363
, char const* doc
364364
, detail::keyword_range keywords)
365365
{
366-
detail::def_init_aux(cl, args, NArgs(), policies, doc, keywords);
366+
detail::def_init_aux(cl, args, NArgs(), policies, 0, keywords);
367367

368368
if (keywords.second > keywords.first)
369369
--keywords.second;

0 commit comments

Comments
 (0)