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-11 15:28:37


#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 dave):

 It's probably a bug that you're able to crash Python, but the two examples
 you are reporting as bugs don't mean what you think they do:

 {{{#!cpp
         bp::def("bug1", &f, ("x", "y", bp::arg("z")));
         bp::def("bug2", &f, ("x", "y", "z"));
 }}}

 In particular, because the comma operator associates from left-to-right,
 what you've written there is equivalent to:

 {{{#!cpp
         bp::def("bug1", &f, bp::arg("z"));
         bp::def("bug2", &f, "z");
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4726#comment:1>
Boost C++ Libraries <http://www.boost.org/>
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