Changeset d7c0ad5


Ignore:
Timestamp:
Apr 22, 2024, 10:00:02 AM (5 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
15215f02
Parents:
ba97ebf
Message:

Removed some overloads from the Pass template. I believe these were needed for g++ 5 and 6, which we supported at the time but we have since dropped support for them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rba97ebf rd7c0ad5  
    113113        static auto read( node_type const * node, Args&&... args ) {
    114114                Pass<core_t> visitor( std::forward<Args>( args )... );
    115                 auto const * temp = node->accept( visitor );
    116                 assert( temp == node );
    117                 return visitor.get_result();
    118         }
    119 
    120         // Versions of the above for older compilers.
    121         template< typename... Args >
    122         static void run( TranslationUnit & decls ) {
    123                 Pass<core_t> visitor;
    124                 accept_all( decls, visitor );
    125         }
    126 
    127         template< typename node_type, typename... Args >
    128         static auto read( node_type const * node ) {
    129                 Pass<core_t> visitor;
    130115                auto const * temp = node->accept( visitor );
    131116                assert( temp == node );
Note: See TracChangeset for help on using the changeset viewer.