Small bug fix in wrap - for return types, try to parse 'pair' before a simple type to prevent 'pair' spuriously being stored as the namespace of the return type, which causes return type validation to fail for pairs of simple types, i.e. 'pair<int,int>'

release/4.3a0
Richard Roberts 2013-01-28 17:41:42 +00:00
parent 981c3363e6
commit 12f8152891
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void Module::parseMarkup(const std::string& data) {
Rule void_p = str_p("void")[assign_a(retVal.type1)][assign_a(retVal.category1, RETURN_VOID)];
Rule returnType_p = void_p | returnType1_p | pair_p;
Rule returnType_p = void_p | pair_p | returnType1_p;
Rule methodName_p = lexeme_d[lower_p >> *(alnum_p | '_')];