Changeset 1febef62 for src/Common
- Timestamp:
- Mar 21, 2019, 2:21:59 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Common/PersistentMap.h ¶
rb5cff2b r1febef62 146 146 147 147 // remove map from base 148 Base base_map = base->t ake_as<Base>();148 Base base_map = base->template take_as<Base>(); 149 149 base->reset_as_base(); 150 150 … … 155 155 auto it = base_map.find( self.key ); 156 156 157 base-> init<Ins>(157 base->template init<Ins>( 158 158 mut_this->shared_from_this(), std::move(self.key), std::move(it->second) ); 159 159 base->mode = INS; … … 165 165 Ins& self = mut_this->as<Ins>(); 166 166 167 base-> init<Rem>( mut_this->shared_from_this(), self.key );167 base->template init<Rem>( mut_this->shared_from_this(), self.key ); 168 168 base->mode = REM; 169 169 … … 175 175 auto it = base_map.find( self.key ); 176 176 177 base-> init<Ins>(177 base->template init<Ins>( 178 178 mut_this->shared_from_this(), std::move(self.key), std::move(it->second) ); 179 179 base->mode = UPD; … … 243 243 Ptr ret = std::make_shared<Self>( take_as<Base>() ); 244 244 reset_as_base(); 245 Base& base_map = ret-> as<Base>();245 Base& base_map = ret->template as<Base>(); 246 246 247 247 // check if this is update or insert … … 274 274 Ptr ret = std::make_shared<Self>( take_as<Base>() ); 275 275 reset_as_base(); 276 Base& base_map = ret-> as<Base>();276 Base& base_map = ret->template as<Base>(); 277 277 278 278 // set self to INS node and remove from base
Note: See TracChangeset
for help on using the changeset viewer.