Changeset aefcc3b for src/Parser


Ignore:
Timestamp:
Sep 20, 2016, 4:14:13 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
23b6643f
Parents:
8c49c0e
Message:

major change to instantiateFunction to match arguments against the formal parameter's structure rather than the reverse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Parser/ParseNode.h

    r8c49c0e raefcc3b  
    397397//##############################################################################
    398398
    399 template< typename SynTreeType, typename NodeType >
    400 void buildList( const NodeType * firstNode, std::list< SynTreeType * > &outputList ) {
     399template< typename SynTreeType, typename NodeType, template< typename, typename...> class Container, typename... Args >
     400void buildList( const NodeType * firstNode, Container< SynTreeType *, Args... > &outputList ) {
    401401        SemanticError errors;
    402         std::back_insert_iterator< std::list< SynTreeType * > > out( outputList );
     402        std::back_insert_iterator< Container< SynTreeType *, Args... > > out( outputList );
    403403        const NodeType * cur = firstNode;
    404404
Note: See TracChangeset for help on using the changeset viewer.