This resource has not currently been approved, and is not currently linked to from our directory of resources. It is being displayed here for preview by the author and moderators only.
13. Processing of constructions "using" and "namespace" inside functions.
OpenC++ library doesn't know that inside functions "using" and "namespace" constructions may be used. But one can easily correct it by modifying Parser::rStatement() function:
bool Parser::rStatement(Ptree*& st)
{
...
case USING :
return rUsing(st);
case NAMESPACE :
if (lex->LookAhead(2) == '=')
return rNamespaceAlias(st);
return rExprStatement(st);
...
}
|