Commit fd077537 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#859 Script create accessor: foresee the case of template template parameter...

#859 Script create accessor: foresee the case of template template parameter for class template argument.
parent 905edcf0
......@@ -83,8 +83,9 @@ class CreateAccessors:
for item in self._template_args:
item = item.strip()
splitted = item.split(' ')
assert(len(splitted) == 2)
args.append(splitted[1])
assert(len(splitted) > 1)
# assert(len(splitted) == 2) Might be more for template template parameters!
args.append(splitted[-1])
self._class_name = "{raw}<{args}>".format(raw = class_name, args = ", ".join(args))
......
Supports Markdown
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