Boost python function default arguments

Boost python function default arguments

Posted: GSM-pro Date: 03.06.2017

I have a class that has two functions, both of which take a different set of parameters and both of which have default arguments like so:.

The problem is I really have no idea how to use them together at the same time. I'd like to avoid having to change my base class function definitions. The trick is that you need to tell each def to use one of the overload specifiers that seemed to be the biggest missing piece from what you had.

Python 3 Programming Tutorial - Function Parameter Defaults

By posting your answer, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users.

boost python function default arguments

Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us. Log In Sign Up.

Python is packed with goodness | InfoWorld

Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: Boost Python - Overloaded Functions with default arguments problem Ask Question.

I have a class that has two functions, both of which take a different set of parameters and both of which have default arguments like so: Can someone who's done this before, or knows how to do this help me out? Megatron 1, 3 24 There is a good guide: Default Arguments in Boost:: This works for me: John Zwinck k 14 Sign up or log in StackExchange.

Sign up using Facebook.

boost python function default arguments

Sign up using Email and Password. Post as a guest Name.

boost python function default arguments

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system