Re: [Boost-bugs] [Boost C++ Libraries] #4726: Bugs when using named args.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4726: Bugs when using named args.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-13 07:47:25

#4726: Bugs when using named args.
  Reporter: Albin Thoren <thorena@…> | Owner: dave
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: Python
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:

Comment (by Albin Thoren <thorena@…>):

 Yes, you're right. I should have seen that.

 The crash then only occurs with unintended use of bp::arg. That is, if the
 number of function arguments does not match the number of bp::arg(s). That
 bp::def("bug", &f, (bp::arg("y"), bp::arg("z")));
 bug(anything=1, y=2, z=3)
 also crashes python.

 I assume any declaration with mismatching num of args should be
 illegal/undefined behaviour. Would it be possible to add a static assert
 to verify that the number or function arguments == the number of

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC