Changeset e7f8119 for src/AST/Node.hpp
- Timestamp:
- Jun 10, 2019, 10:52:03 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6355ba7
- Parents:
- 9856ca9 (diff), 61c7239 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Node.hpp
r9856ca9 re7f8119 154 154 155 155 template< enum Node::ref_type o_ref_t > 156 ptr_base( const ptr_base<node_t, o_ref_t> & o ) : node(o. node) {156 ptr_base( const ptr_base<node_t, o_ref_t> & o ) : node(o.get()) { 157 157 if( node ) _inc(node); 158 158 } 159 159 160 160 template< enum Node::ref_type o_ref_t > 161 ptr_base( ptr_base<node_t, o_ref_t> && o ) : node(o. node) {161 ptr_base( ptr_base<node_t, o_ref_t> && o ) : node(o.get()) { 162 162 if( node ) _inc(node); 163 163 } … … 184 184 template< enum Node::ref_type o_ref_t > 185 185 ptr_base & operator=( const ptr_base<node_t, o_ref_t> & o ) { 186 assign(o. node);186 assign(o.get()); 187 187 return *this; 188 188 } … … 190 190 template< enum Node::ref_type o_ref_t > 191 191 ptr_base & operator=( ptr_base<node_t, o_ref_t> && o ) { 192 assign(o. node);192 assign(o.get()); 193 193 return *this; 194 194 } … … 228 228 void _check() const; 229 229 230 protected:231 230 const node_t * node; 232 231 };
Note: See TracChangeset
for help on using the changeset viewer.