Added support for non-name template arguments. This fixes #696

This commit is contained in:
Armin Ronacher
2011-09-22 10:23:46 +02:00
parent ad5d9f7c6b
commit bdf5816437
2 changed files with 27 additions and 4 deletions

View File

@@ -25,6 +25,9 @@ def test_type_definitions():
rv = parse('member_object', ' const std::string & name leftover')
assert unicode(rv) == 'const std::string& name'
x = 'void operator()(const boost::array<VertexID, 2>& v) const'
assert unicode(parse('function', x)) == x
rv = parse('member_object', 'const std::vector< unsigned int, long> &name')
assert unicode(rv) == 'const std::vector<unsigned int, long>& name'