|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56271 - sandbox/numeric_bindings/libs/numeric/bindings/tools
From: rutger_at_[hidden]
Date: 2009-09-17 07:58:12
Author: rutger
Date: 2009-09-17 07:58:11 EDT (Thu, 17 Sep 2009)
New Revision: 56271
URL: http://svn.boost.org/trac/boost/changeset/56271
Log:
added support for multi-argument trait_of template override
Text files modified:
sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py 2009-09-17 07:58:11 EDT (Thu, 17 Sep 2009)
@@ -985,7 +985,10 @@
if my_has_key( traits_key, template_map ):
data = template_map[ my_has_key( traits_key, template_map ) ].split(",")
argument_properties[ 'trait_type' ] = data[0].strip()
- argument_properties[ 'trait_of' ] = data[1].strip()
+ if len(data)==2:
+ argument_properties[ 'trait_of' ] = data[1].strip()
+ else:
+ argument_properties[ 'trait_of' ] = [ data[1].strip(), data[2].strip() ]
#
# If traits are not user-defined, try the regular detection stuff
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk