Ignore:
Timestamp:
Feb 27, 2015, 9:59:31 AM (4 years ago)
Author:
nmedfort
Message:

Safer use of initializer_list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.cpp

    r4521 r4524  
    378378}
    379379
    380 If * PabloBlock::createIf(PabloAST * condition, std::initializer_list<Assign *> definedVars, PabloBlock & body) {
     380If * PabloBlock::createIf(PabloAST * condition, const std::initializer_list<Assign *> definedVars, PabloBlock & body) {
    381381    assert (condition);
    382     return insertAtInsertionPoint(new If(condition, std::move(definedVars), body, this));
     382    return insertAtInsertionPoint(new If(condition, definedVars, body, this));
    383383}
    384384
Note: See TracChangeset for help on using the changeset viewer.