Changeset 1febef62


Ignore:
Timestamp:
Mar 21, 2019, 2:21:59 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ca59826
Parents:
b5cff2b
Message:

Fix gcc-7 errors in persistent map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PersistentMap.h

    rb5cff2b r1febef62  
    146146
    147147                // remove map from base
    148                 Base base_map = base->take_as<Base>();
     148                Base base_map = base->template take_as<Base>();
    149149                base->reset_as_base();
    150150
     
    155155                                auto it = base_map.find( self.key );
    156156
    157                                 base->init<Ins>(
     157                                base->template init<Ins>(
    158158                                                mut_this->shared_from_this(), std::move(self.key), std::move(it->second) );
    159159                                base->mode = INS;
     
    165165                                Ins& self = mut_this->as<Ins>();
    166166
    167                                 base->init<Rem>( mut_this->shared_from_this(), self.key );
     167                                base->template init<Rem>( mut_this->shared_from_this(), self.key );
    168168                                base->mode = REM;
    169169
     
    175175                                auto it = base_map.find( self.key );
    176176
    177                                 base->init<Ins>(
     177                                base->template init<Ins>(
    178178                                                mut_this->shared_from_this(), std::move(self.key), std::move(it->second) );
    179179                                base->mode = UPD;
     
    243243                Ptr ret = std::make_shared<Self>( take_as<Base>() );
    244244                reset_as_base();
    245                 Base& base_map = ret->as<Base>();
     245                Base& base_map = ret->template as<Base>();
    246246
    247247                // check if this is update or insert
     
    274274                Ptr ret = std::make_shared<Self>( take_as<Base>() );
    275275                reset_as_base();
    276                 Base& base_map = ret->as<Base>();
     276                Base& base_map = ret->template as<Base>();
    277277
    278278                // set self to INS node and remove from base
Note: See TracChangeset for help on using the changeset viewer.