Commit 1d474dee authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix problem with ugly type names in run_action

parent 98ee958f
......@@ -56,10 +56,11 @@ def inline(g, code, arg_names=[], local_dict=None,
props = ""
for d in ["vertex", "edge", "graph"]:
for t in core.value_types():
props += ("typedef typename %s_prop_t::template as<%s >::type" + \
props += (("typedef typename %s_prop_t::template as<%s >::type" + \
" %sprop_%s_t;\n") % \
(d,t,d[0],t.replace(" ","_").replace("::","_")\
.replace("<","_").replace(">","_"))
.replace("<","_").replace(">","_"))).\
replace("__","_")
# each term on the expansion will properly unwrap a tuple pointer value
# to a reference with the appropriate name and type
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment