boost::python::arg maybe a bit long?

Bug #1324191 reported by Bruno Chareyre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Opinion
Wishlist
Unassigned

Bug Description

When a function as many default parameters in YADE_CLASS macros it increases the code seriously.
possible fix:
#define boost::python::arg arg
+ search/replace

Changed in yade:
importance: Undecided → Wishlist
Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 1324191] [NEW] boost::python::arg maybe a bit long?

Hi Bruno,

I am not the fan of "#defines", and I would propose to
use something like:

namespace py = boost::python;

what is used already in some parts of the code [1]. I think
it will be more safely and reduces this expression.

Anton

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

That would do the trick too. Ok.

Changed in yade:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.