Changeset 0240cd6


Ignore:
Timestamp:
Aug 13, 2020, 11:53:46 AM (15 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
62502cc4
Parents:
80ec409
Message:

Added overload to Pass::run with a single argument to help older compilers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    r80ec409 r0240cd6  
    9191        static void run( std::list< ptr<Decl> > & decls, Args &&... args ) {
    9292                Pass<core_t> visitor( std::forward<Args>( args )... );
     93                accept_all( decls, visitor );
     94        }
     95
     96        template< typename... Args >
     97        static void run( std::list< ptr<Decl> > & decls ) {
     98                Pass<core_t> visitor;
    9399                accept_all( decls, visitor );
    94100        }
Note: See TracChangeset for help on using the changeset viewer.