Changeset d06273c


Ignore:
Timestamp:
Feb 23, 2024, 10:31:08 AM (8 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
4e2f1b2
Parents:
2beaf9b
Message:

Used structural binding to shorten some loop setup. The generally useful clean-up I did while trying to get layout call hoisting working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cpp

    r2beaf9b rd06273c  
    11091109        );
    11101110
    1111         for ( auto group : group_iterate( realType->assertions,
    1112                         adapterType->assertions, adaptee->assertions ) ) {
    1113                 auto assertArg = std::get<0>( group );
    1114                 auto assertParam = std::get<1>( group );
    1115                 auto assertReal = std::get<2>( group );
     1111        for ( auto const & [assertArg, assertParam, assertReal] : group_iterate(
     1112                        realType->assertions, adapterType->assertions, adaptee->assertions ) ) {
    11161113                adapteeApp->args.push_back( makeAdapterArg(
    11171114                        assertParam->var, assertArg->var->get_type(),
     
    19701967        bool hasDynamicLayout = false;
    19711968
    1972         for ( auto pair : group_iterate( baseParams, typeParams ) ) {
    1973                 auto baseParam = std::get<0>( pair );
    1974                 auto typeParam = std::get<1>( pair );
     1969        for ( auto const & [baseParam, typeParam] : group_iterate(
     1970                        baseParams, typeParams ) ) {
    19751971                if ( !baseParam->isComplete() ) continue;
    19761972                ast::TypeExpr const * typeExpr = typeParam.as<ast::TypeExpr>();
Note: See TracChangeset for help on using the changeset viewer.